Skip to content

Commit

Permalink
fix: docker container redirection
Browse files Browse the repository at this point in the history
Signed-off-by: rare-magma <[email protected]>
  • Loading branch information
rare-magma committed Oct 19, 2024
1 parent 7993853 commit 71e1fa7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ FROM docker.io/library/busybox:latest
RUN adduser -D static
USER static
WORKDIR /home/static
COPY --chown=static:static docker/httpd.conf .
COPY --from=build --chown=static:static /app/build .
EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=1s --start-period=5s --retries=3 CMD [ "wget", "--no-verbose", "--tries=1", "--spider", "127.0.0.1:3000" ]
CMD ["busybox", "httpd", "-f", "-p", "3000"]
CMD ["busybox", "httpd", "-f", "-c", "httpd.conf", "-p", "3000"]
1 change: 1 addition & 0 deletions docker/httpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
E404:index.html

0 comments on commit 71e1fa7

Please sign in to comment.