Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reorganize docker layers for faster builds during development #31

Merged
merged 1 commit into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
msterle marked this conversation as resolved.
Show resolved Hide resolved

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