Skip to content

Commit

Permalink
Docker Updates (#206)
Browse files Browse the repository at this point in the history
* dev: Explicit mongodb version and removed version

* build(backend): Don't install cypress

* build(frontend): Don't install cypress
  • Loading branch information
Clashsoft authored Dec 7, 2024
1 parent 933ada2 commit ebe43a7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions apps/backend/Dockerfile
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
2 changes: 1 addition & 1 deletion apps/frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
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 . .
ARG APP_VERSION
RUN APP_VERSION=$APP_VERSION corepack pnpm run build:frontend
Expand Down
3 changes: 1 addition & 2 deletions docker-compose.dev.yml
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:
Expand Down
3 changes: 1 addition & 2 deletions docker-compose.yml
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:
Expand Down

0 comments on commit ebe43a7

Please sign in to comment.