Skip to content

Commit

Permalink
update dyslexicon
Browse files Browse the repository at this point in the history
  • Loading branch information
squi-ddy committed Dec 10, 2023
1 parent cb55ff1 commit 322a40f
Show file tree
Hide file tree
Showing 5 changed files with 939 additions and 392 deletions.
7 changes: 3 additions & 4 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ COPY . .
COPY --from=dependencies /app/node_modules ./node_modules
RUN pnpm run build

FROM busybox:musl AS deploy
FROM nginx:alpine-slim AS deploy

WORKDIR /app/
COPY --from=build /app/dist .
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist /data/www

CMD ["busybox", "httpd", "-f", "-v", "-p", "8000"]
10 changes: 10 additions & 0 deletions frontend/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
server {
listen 8000;
root /data/www;
location /dyslexicon {
try_files $uri $uri/ /dyslexicon/index.html;
}
location / {
try_files $uri $uri/ /index.html;
}
}
Loading

0 comments on commit 322a40f

Please sign in to comment.