2021-10-20 19:57:11 +00:00
|
|
|
# syntax=docker/dockerfile:1
|
|
|
|
|
2023-08-07 18:19:11 +00:00
|
|
|
FROM node:18.17.0-bullseye
|
2021-10-20 19:57:11 +00:00
|
|
|
|
|
|
|
ENV NODE_ENV=development
|
|
|
|
|
2024-03-09 02:07:43 +00:00
|
|
|
ARG UID
|
|
|
|
ARG GID
|
|
|
|
RUN groupadd -fg "$GID" apprunner
|
2024-03-09 18:15:36 +00:00
|
|
|
RUN useradd -om -u "$UID" -g "$GID" apprunner
|
2024-03-09 02:07:43 +00:00
|
|
|
USER apprunner
|
|
|
|
|
2021-10-20 19:57:11 +00:00
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
EXPOSE 3000
|
|
|
|
|
2024-03-08 19:11:15 +00:00
|
|
|
COPY package.json package-lock.json ./
|
|
|
|
RUN npm ci --legacy-peer-deps --loglevel verbose
|
|
|
|
CMD ["sh","-c","npm install --loglevel verbose --legacy-peer-deps && npx prisma migrate dev && npm run dev"]
|