2023-06-29 17:41:36 +00:00
|
|
|
FROM node:18-alpine
|
|
|
|
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
|
|
|
ARG SERVICE
|
|
|
|
|
|
|
|
RUN npm i -g pnpm
|
|
|
|
|
|
|
|
COPY package.json ./
|
|
|
|
COPY pnpm-lock.yaml ./
|
|
|
|
|
2023-07-27 18:23:37 +00:00
|
|
|
# Make sure puppeteer isnt downloading anything here
|
|
|
|
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
|
2023-06-29 17:41:36 +00:00
|
|
|
RUN pnpm install
|
|
|
|
|
|
|
|
COPY . ./
|
|
|
|
|
|
|
|
ENV APP_NAME=${SERVICE}
|
|
|
|
|
|
|
|
CMD [ "/bin/sh", "-c", "pnpm start:dev $APP_NAME" ]
|