Skip to content

Commit

Permalink
build: docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
rubiin committed Sep 15, 2023
1 parent 18dd566 commit a706937
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ node_modules
# misc
.sass-cache
env
conf
collection.json
connect.lock
/coverage
Expand Down
4 changes: 1 addition & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version:
"3.8"

#######################################
# Basic needed services
# Basic needed services #
#######################################

services:
Expand Down Expand Up @@ -182,13 +182,11 @@ services:
- "traefik.http.routers.nestify.tls.certresolver=certresolver"
- "traefik.http.routes.nestify.middlewares=traefik-headers,traefik-compress,traefik-ratelimit,traefik-retry"


stdin_open: true
tty: true
networks:
- nestify-network
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules

# RabbitMQ service
Expand Down
5 changes: 3 additions & 2 deletions docker/dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM node:20.6.1-slim
WORKDIR /usr/src/app
RUN npm i -g pnpm
# pnpm fetch does require only lockfile
COPY pnpm-lock.yaml ./
COPY pnpm-lock.yaml package.json ./
RUN --mount=type=cache,id=pnpm,target=/usr/app/.pnpm-store/v3 pnpm fetch
COPY package.json ./
# add source code
COPY . ./
RUN pnpm install --offline --shamefully-hoist=true --frozen-lockfile

0 comments on commit a706937

Please sign in to comment.