web-service/Dockerfile.dev
2023-07-27 21:23:37 +03:00

21 lines
321 B
Docker

FROM node:18-alpine
WORKDIR /usr/src/app
ARG SERVICE
RUN npm i -g pnpm
COPY package.json ./
COPY pnpm-lock.yaml ./
# Make sure puppeteer isnt downloading anything here
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
RUN pnpm install
COPY . ./
ENV APP_NAME=${SERVICE}
CMD [ "/bin/sh", "-c", "pnpm start:dev $APP_NAME" ]