-
Notifications
You must be signed in to change notification settings - Fork 10
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
272e973
commit 9868dc9
Showing
2 changed files
with
9 additions
and
5 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:18-alpine | ||
FROM node:18-alpine as dev | ||
LABEL author="Paolo Pustorino <[email protected]>" | ||
|
||
# Variables | ||
|
@@ -10,8 +10,7 @@ WORKDIR $INSTALL_DIR | |
|
||
# Copy content and configuration | ||
COPY ./custom/server.js ./ | ||
COPY ./custom/package.json ./ | ||
COPY ./custom/package-lock.json ./ | ||
COPY ./custom/package* ./ | ||
COPY ./custom/config.js ./config.js | ||
COPY ./custom/themes ./themes | ||
COPY ./content ./content | ||
|
@@ -24,4 +23,8 @@ EXPOSE $PORT | |
# Configure the entrypoint script | ||
COPY build/node/entrypoint.sh /entrypoint.sh | ||
RUN chmod +x /entrypoint.sh | ||
CMD ["npm run start"] | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
|
||
FROM dev as prod | ||
RUN cd custom && npm install |
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