stacker.news/Dockerfile

13 lines
307 B
Docker
Raw Normal View History

2021-10-20 14:57:11 -05:00
# syntax=docker/dockerfile:1
2023-08-07 13:19:11 -05:00
FROM node:18.17.0-bullseye
2021-10-20 14:57:11 -05:00
ENV NODE_ENV=development
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"]