-
Notifications
You must be signed in to change notification settings - Fork 1
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
853b1c9
commit 220c4b3
Showing
7 changed files
with
37 additions
and
11 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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM artifacts.developer.gov.bc.ca/docker-remote/node:18.16.0-alpine3.18 | ||
|
||
RUN mkdir -p /logs | ||
RUN chmod 755 /logs | ||
|
||
WORKDIR /opt/app-root/src | ||
RUN ln -s /logs . | ||
|
||
COPY package*.json ./ | ||
RUN npm ci | ||
|
||
COPY . /opt/app-root/src | ||
EXPOSE 443 8080 | ||
CMD ["node", "--max-old-space-size=150", "./src/server.js"] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM artifacts.developer.gov.bc.ca/docker-remote/node:14.20.1 as build-stage | ||
WORKDIR /frontend | ||
COPY package*.json ./ | ||
RUN npm install | ||
COPY ./ . | ||
RUN npm run build | ||
|
||
FROM artifacts.developer.gov.bc.ca/docker-remote/caddy:2.4.6-alpine as caddy-stage | ||
|
||
EXPOSE 2015 | ||
COPY Caddyfile /etc/caddy/Caddyfile | ||
COPY --from=build-stage /frontend/dist /srv |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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