Browse Source
Merge pull request #10 from Cameri/fix/docker-with-esbuild
fix: docker with esbuild
update/libraries
fiatjaf
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
4 additions and
2 deletions
-
Dockerfile
-
README.md
-
nginx/conf.d/default.conf
|
@ -2,7 +2,9 @@ FROM node:14-alpine as build |
|
|
|
|
|
|
|
|
WORKDIR /app |
|
|
WORKDIR /app |
|
|
|
|
|
|
|
|
COPY index.html main.js package.json build.js /app/ |
|
|
COPY public/index.html /app/public/index.html |
|
|
|
|
|
|
|
|
|
|
|
COPY main.js package.json build.js /app/ |
|
|
|
|
|
|
|
|
RUN yarn \ |
|
|
RUN yarn \ |
|
|
&& yarn run build |
|
|
&& yarn run build |
|
|
|
@ -1,6 +1,6 @@ |
|
|
server { |
|
|
server { |
|
|
listen 80; |
|
|
listen 80; |
|
|
root /app/public; |
|
|
root /app; |
|
|
|
|
|
|
|
|
location / { |
|
|
location / { |
|
|
index index.html; |
|
|
index index.html; |
|
|