Merge pull request #10 from Cameri/fix/docker-with-esbuild

fix: docker with esbuild
This commit is contained in:
fiatjaf
2022-02-13 17:59:42 -03:00
committed by GitHub
3 changed files with 4 additions and 2 deletions

View File

@@ -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

View File

View File

@@ -1,6 +1,6 @@
server { server {
listen 80; listen 80;
root /app/public; root /app;
location / { location / {
index index.html; index index.html;