Add additional Dockerfiles
This commit is contained in:
parent
2e141f8949
commit
c328299c89
13 changed files with 350 additions and 37 deletions
|
|
@ -1,8 +1,5 @@
|
|||
FROM public.ecr.aws/bitnami/node:16-debian-10 as builder
|
||||
FROM node:18-bullseye-slim as builder
|
||||
LABEL maintainer="Darren Clarke <darren@redaranj.com>"
|
||||
RUN useradd -u 1001 -g root node
|
||||
RUN mkdir /home/node
|
||||
RUN chown -R node /home/node
|
||||
ARG APP_DIR=/opt/leafcutter
|
||||
RUN mkdir -p ${APP_DIR}/
|
||||
COPY . ${APP_DIR}/
|
||||
|
|
@ -13,7 +10,7 @@ ENV NEXT_PUBLIC_NEXTAUTH_URL https://lc.digiresilience.org
|
|||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
FROM public.ecr.aws/bitnami/node:16-debian-10
|
||||
FROM node:18-bullseye-slim
|
||||
ARG BUILD_DATE
|
||||
ARG VERSION
|
||||
LABEL maintainer="Darren Clarke <darren@redaranj.com>"
|
||||
|
|
@ -25,7 +22,6 @@ ENV APP_DIR ${APP_DIR}
|
|||
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
dumb-init
|
||||
RUN useradd -u 1001 -g root node
|
||||
RUN mkdir -p ${APP_DIR}
|
||||
RUN chown -R node ${APP_DIR}/
|
||||
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue