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