Skip to content

Commit

Permalink
add caddy to dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tiendat1011 committed Jun 23, 2024
1 parent 2de51a3 commit b84e408
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Caddyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
api.tuilaphu.id.vn
reverse_proxy :7000
10 changes: 9 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,12 @@ RUN npx tsc

CMD [ "npm", "run", "dev" ]

EXPOSE 7000
EXPOSE 7000

FROM caddy:2.6.2-alpine

COPY ./Caddyfile /etc/caddy/Caddyfile

EXPOSE 3000

CMD ["caddy", "run", "--config", "/etc/caddy/Caddyfile"]

0 comments on commit b84e408

Please sign in to comment.