proxy/Dockerfile
Liam 9001c161d8
Some checks failed
Publish Docker Images / docker (push) Failing after 21s
7
2023-11-16 13:09:43 +00:00

21 lines
333 B
Docker

FROM fascinated/docker-images:node-pnpm-latest
ARG APP
ENV APP=${APP}
WORKDIR /usr/src/app
# Copy the app's sourse
COPY apps/${APP} ./${APP}
# Install dependencies
RUN pnpm install --frozen-lockfile --production
# Build the app
RUN pnpm run build
# Expose the port
EXPOSE 3000
# Run the app
CMD pnpm apps/$APP/dist/index.js