Skip to content

Commit

Permalink
Merge branch 'andrius/dockerfile-trim' into 'main'
Browse files Browse the repository at this point in the history
Dockerfile: only add necessary files to Docker image

See merge request flarenetwork/ftso/ftso-scaling!147
  • Loading branch information
adg-flare committed Jan 9, 2025
2 parents be440b5 + 1257274 commit 3f1fc4f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
14 changes: 9 additions & 5 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
.git
.github
.vscode
node_modules
dist
/**
!/abi
!/apps
!/libs
!nest-cli.json
!package.json
!tsconfig.build.json
!tsconfig.json
!yarn.lock
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:18-slim as nodemodules
FROM node:18-slim AS nodemodules

WORKDIR /app

COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile --network-timeout 100000

FROM node:18-slim as build
FROM node:18-slim AS build

WORKDIR /app

Expand All @@ -15,7 +15,7 @@ COPY . ./
RUN yarn build
RUN yarn build ftso-reward-calculation-process

FROM node:18-slim as runtime
FROM node:18-slim AS runtime

WORKDIR /app

Expand Down

0 comments on commit 3f1fc4f

Please sign in to comment.