-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b30d702
commit 05c5192
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,7 +64,7 @@ RUN ansible-galaxy collection install community.mysql -p /usr/share/ansible/coll | |
# why from diff image? for faster build, this image has node preinstalled and can start building immediately | ||
# if only the node app changes, the intermediate image can be cached and the final image will be faster to build | ||
|
||
FROM node AS tmp_builder | ||
FROM node:16-alpine AS tmp_builder | ||
|
||
# Update npm | ||
RUN npm install -g [email protected] | ||
|
@@ -128,7 +128,7 @@ FROM debianbase as final | |
COPY package*.json ./ | ||
|
||
# Copy transpiled js from builder stage into the final image | ||
COPY --from=tmp_builder /app/server/dist ./dist | ||
COPY --from=tmp_builder /app/dist ./dist | ||
|
||
# Install only production dependencies | ||
# the build was done in alpine, so we need to remove any previous node_modules | ||
|