Skip to content

Commit

Permalink
Fix Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
unkhz committed Jul 19, 2024
1 parent d1b19ed commit 539d220
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:lts-alpine as buildtime
FROM node:lts-alpine AS buildtime
WORKDIR /app
COPY package*.json nx.json /app/

Expand All @@ -21,10 +21,10 @@ COPY packages/common-postgres /app/packages/common-postgres/
RUN npx nx run-many --target=node:build --all

# Clean slate for runtime
FROM node:lts-alpine as runtime
FROM node:lts-alpine AS runtime
WORKDIR /app
COPY --from=buildtime /app/package*.json /app/nx.json /app/
COPY --from=buildtime /app/packages /app/packages
COPY --link --from=buildtime /app/package*.json /app/nx.json /app/
COPY --link --from=buildtime /app/packages /app/packages

# Remove dev deps for runtime
RUN npm ci --omit=dev
2 changes: 1 addition & 1 deletion packages/archive/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/ruuvipuserrin/base-node
FROM ghcr.io/unkhz/ruuvipuserrin/base-node

WORKDIR /app

Expand Down

0 comments on commit 539d220

Please sign in to comment.