7
Some checks failed
Publish Docker Images / docker (push) Failing after 21s

This commit is contained in:
Lee 2023-11-16 13:09:43 +00:00
parent fe97190fab
commit 9001c161d8

@ -5,17 +5,17 @@ ENV APP=${APP}
WORKDIR /usr/src/app WORKDIR /usr/src/app
# Copy root package.json and lockfile
COPY package.json ./
COPY pnpm-lock.yaml ./
# Copy the app's sourse # Copy the app's sourse
COPY apps/${APP} ./apps/${APP} COPY apps/${APP} ./${APP}
RUN pnpm install # Install dependencies
RUN pnpm install --frozen-lockfile --production
RUN cd apps/$APP && pnpm run build # Build the app
RUN pnpm run build
# Expose the port
EXPOSE 3000 EXPOSE 3000
# Run the app
CMD pnpm apps/$APP/dist/index.js CMD pnpm apps/$APP/dist/index.js