21 lines
321 B
Docker
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" ]
|