-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* dev: Explicit mongodb version and removed version * build(backend): Don't install cypress * build(frontend): Don't install cypress
- Loading branch information
Showing
4 changed files
with
6 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
FROM node:lts-slim as builder | ||
FROM node:lts-slim AS builder | ||
WORKDIR /app | ||
COPY package.json pnpm-lock.yaml ./ | ||
RUN corepack pnpm install --frozen-lockfile | ||
RUN CYPRESS_INSTALL_BINARY=0 corepack pnpm install --frozen-lockfile | ||
COPY . . | ||
RUN corepack pnpm run build:backend | ||
|
||
FROM node:lts-slim | ||
WORKDIR /app | ||
COPY --from=builder /app/dist/apps/backend/ ./ | ||
ENV NODE_ENV=production | ||
RUN corepack pnpm install # --frozen-lockfile | ||
RUN CYPRESS_INSTALL_BINARY=0 corepack pnpm install --frozen-lockfile | ||
EXPOSE 3000 | ||
CMD node main.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
version: '3' | ||
services: | ||
database: | ||
image: mongo | ||
image: mongo:7 | ||
ports: | ||
- "27017:27017" | ||
volumes: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
version: '3' | ||
services: | ||
database: | ||
image: mongo | ||
image: mongo:7 | ||
ports: | ||
- "27017:27017" | ||
volumes: | ||
|