Skip to content

Commit

Permalink
Fixed Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Kosmaczewski committed Jul 17, 2023
1 parent b5ff1e6 commit eff220f
Show file tree
Hide file tree
Showing 3 changed files with 604 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
FROM docker.io/library/node:20-alpine3.17 AS builder

RUN npm install -g pkg pkg-fetch
ENV NODE node10
ENV NODE node18
ENV PLATFORM alpine
ENV ARCH x64
RUN /usr/local/bin/pkg-fetch ${NODE} ${PLATFORM} ${ARCH}
Expand All @@ -17,7 +17,7 @@ RUN npm test
RUN npm run build

# Package the result into a binary without dependencies
RUN /usr/local/bin/pkg --targets ${NODE}-${PLATFORM}-${ARCH} /app/dist/index.js -o server.bin
RUN /usr/local/bin/pkg --targets ${NODE}-${PLATFORM}-${ARCH} -o server.bin dist/src/index.js


# Step 2: Create the runtime image
Expand Down
Loading

0 comments on commit eff220f

Please sign in to comment.