proxy/Dockerfile

21 lines
341 B
Docker
Raw Normal View History

2023-11-16 11:56:52 +00:00
FROM fascinated/docker-images:node-pnpm-latest
2023-11-16 12:54:49 +00:00
ARG APP
2023-11-16 12:32:38 +00:00
WORKDIR /usr/src/app
# Copy root package.json and lockfile
COPY package.json ./
2023-11-16 12:49:58 +00:00
COPY pnpm-lock.yaml ./
2023-11-16 12:32:38 +00:00
2023-11-16 12:54:49 +00:00
# Copy the package.json
COPY apps/${APP}/package.json ./apps/${APP}/package.json
2023-11-16 12:32:38 +00:00
2023-11-16 12:24:38 +00:00
RUN pnpm install
2023-11-16 12:32:38 +00:00
# Copy app source
COPY . .
2023-11-16 11:56:52 +00:00
EXPOSE 3000
2023-11-16 12:32:38 +00:00
2023-11-16 12:58:15 +00:00
CMD pnpm apps/$APP/dist/index.js