Skip to content

Commit

Permalink
back to nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
squi-ddy committed Nov 28, 2023
1 parent 44dabd8 commit acc58d8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
13 changes: 4 additions & 9 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
FROM busybox:musl

RUN adduser -D static
USER static
WORKDIR /home/static

COPY /dist .
EXPOSE 3000
CMD ["busybox", "httpd", "-f", "-v", "-p", "3000"]
FROM nginx:alpine-slim
EXPOSE 80
COPY nginx.conf /etc/nginx/nginx.conf
COPY dist /usr/share/nginx/html
7 changes: 7 additions & 0 deletions frontend/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
server {
listen 80;
root /usr/share/nginx/html;
location / {
try_files $uri $uri/ /index.html;
}
}

0 comments on commit acc58d8

Please sign in to comment.