mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-05-10 18:58:46 +02:00
24 lines
312 B
Docker
24 lines
312 B
Docker
FROM alpine:3.21
|
|
|
|
COPY ./ /build
|
|
|
|
ENV PKGS=true
|
|
ENV TTY=true
|
|
|
|
RUN apk add --no-cache bash clang make
|
|
|
|
RUN cd /build \
|
|
&& PKGS=true make -j re
|
|
|
|
COPY /build/webserv /bin/webserv
|
|
|
|
RUN chmod +x /bin/webserv
|
|
|
|
WORKDIR /
|
|
|
|
RUN webserv --generate
|
|
|
|
STOPSIGNAL SIGINT
|
|
|
|
RUN [ "webserv", "/sample.toml"]
|