Skip to content

Commit

Permalink
reorganize docker layers for faster builds during development (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
msterle authored Dec 14, 2023
1 parent dcaa1ca commit 273a324
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ WORKDIR /app

COPY package.json ./package.json
COPY package-lock.json ./package-lock.json
RUN npm ci && npm cache clean --force

COPY tsoa.json ./tsoa.json
COPY tsconfig.build.json ./tsconfig.build.json
COPY bin ./bin
COPY src ./src

RUN npm ci && npm cache clean --force
RUN npm run --omit=dev build

# Runtime stage
Expand All @@ -26,4 +26,4 @@ COPY --from=builder ./app .

EXPOSE 3000 5002 5003

ENTRYPOINT [ "./bin/afj-rest.js", "start" ]
ENTRYPOINT [ "./bin/afj-rest.js", "start" ]
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@digicatapult/veritable-cloudagent",
"version": "0.4.3",
"version": "0.4.4",
"main": "build/index",
"types": "build/index",
"files": [
Expand Down

0 comments on commit 273a324

Please sign in to comment.