web-service/Dockerfile.dev

19 lines
226 B
Docker

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