-
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.
Change runtime from nginx to npm preview
- Loading branch information
Showing
4 changed files
with
15 additions
and
19 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 +1,3 @@ | ||
node_modules | ||
node_modules | ||
.github/ | ||
Dockerfile |
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 |
---|---|---|
@@ -1,6 +1,13 @@ | ||
FROM nginx | ||
FROM ghcr.io/wirenboard/website-base-image:initial | ||
|
||
# Not really useful outside GitHub Actions - actual builds happens there, | ||
# Dockerfile just copies the output to various flavors of Nginx image | ||
WORKDIR /var/www | ||
|
||
COPY .output/public/ /usr/share/nginx/html/ | ||
COPY package.json /var/www | ||
RUN pnpm install | ||
|
||
COPY . /var/www | ||
RUN pnpm run build | ||
|
||
ENV PORT=80 | ||
|
||
ENTRYPOINT ["/usr/bin/node", "/var/www/.output/server/index.mjs"] |
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