Skip to content

Commit

Permalink
Add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Reboot-Codes committed Apr 22, 2024
1 parent 3597f0b commit 3795c44
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

17 changes: 17 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -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;
}
}

0 comments on commit 3795c44

Please sign in to comment.