Build it
This commit is contained in:
parent
7ac006724d
commit
addeecebdb
6
backend/.dockerignore
Normal file
6
backend/.dockerignore
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
frontend/Makefile
|
||||||
|
httpd
|
||||||
|
proctest
|
||||||
|
threads
|
||||||
|
backend
|
||||||
|
*.sh
|
|
@ -28,7 +28,7 @@ RUN git clone https://git.sr.ht/~sircmpwn/hare && \
|
||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY ./ ./
|
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
|
FROM ubuntu:24.04
|
||||||
|
|
||||||
|
@ -42,5 +42,7 @@ RUN apt-get update -qq \
|
||||||
|
|
||||||
COPY --from=harebuild /usr/local /usr/local
|
COPY --from=harebuild /usr/local /usr/local
|
||||||
COPY --from=harebuild /src/httpd /usr/local/bin/backend
|
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"]
|
ENTRYPOINT ["/usr/local/bin/backend", "-a", "0.0.0.0:8080"]
|
||||||
|
|
Loading…
Reference in a new issue