19 lines
419 B
Docker
19 lines
419 B
Docker
# syntax=docker/dockerfile:1
|
|
|
|
FROM node:18.20.4-bullseye
|
|
|
|
ENV NODE_ENV=development
|
|
|
|
ARG UID
|
|
ARG GID
|
|
RUN groupadd -fg "$GID" apprunner
|
|
RUN useradd -om -u "$UID" -g "$GID" apprunner
|
|
USER apprunner
|
|
|
|
WORKDIR /app
|
|
|
|
EXPOSE 3000
|
|
|
|
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"] |