1
Fork 0
This commit is contained in:
Jan-Erik Rediger 2024-06-01 16:45:25 +02:00
parent 7ac006724d
commit addeecebdb
2 changed files with 9 additions and 1 deletions

6
backend/.dockerignore Normal file
View file

@ -0,0 +1,6 @@
frontend/Makefile
httpd
proctest
threads
backend
*.sh

View file

@ -28,7 +28,7 @@ RUN git clone https://git.sr.ht/~sircmpwn/hare && \
WORKDIR /src
COPY ./ ./
RUN make httpd HAREPATH=/usr/local/src/hare/stdlib HAREFLAGS=-lpthread
RUN make -B httpd HAREPATH=/usr/local/src/hare/stdlib HAREFLAGS=-lpthread
FROM ubuntu:24.04
@ -42,5 +42,7 @@ RUN apt-get update -qq \
COPY --from=harebuild /usr/local /usr/local
COPY --from=harebuild /src/httpd /usr/local/bin/backend
COPY ./frontend/ /app/
WORKDIR /app
ENTRYPOINT ["/usr/local/bin/backend", "-a", "0.0.0.0:8080"]