diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d62bf23 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM nginx:alpine + +RUN apk update && apk add --no-cache nginx nodejs yarn + +WORKDIR /app + +COPY . . + +COPY ./nginx.conf /etc/nginx/nginx.conf + +RUN yarn + +RUN yarn build + +RUN yarn export + diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..c71e9e0 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,17 @@ +http { + include mime.types; + sendfile on; + + server { + listen 80; + listen [::]:80; + + autoindex on; + + server_name _; + server_tokens off; + + root /app/static; + gzip_static on; + } +}