proxy/Dockerfile

21 lines
337 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:58:48 +00:00
ENV APP=${APP}
2023-11-16 12:54:49 +00:00
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 13:02:02 +00:00
# Copy the app's sourse
COPY apps/${APP} ./apps/${APP}
2023-11-16 12:32:38 +00:00
2023-11-16 12:24:38 +00:00
RUN pnpm install
2023-11-16 13:03:59 +00:00
2023-11-16 13:07:42 +00:00
RUN cd apps/$APP && pnpm run build
2023-11-16 12:32:38 +00:00
2023-11-16 11:56:52 +00:00
EXPOSE 3000
2023-11-16 12:32:38 +00:00
2023-11-16 12:58:48 +00:00
CMD pnpm apps/$APP/dist/index.js