」 feat: added mimetype and some other few thing

This commit is contained in:
2025-04-27 15:22:12 +02:00
parent 78f70c9be4
commit 640ed6ce3c
6 changed files with 45 additions and 26 deletions

View File

@ -2,12 +2,22 @@ FROM alpine:3.21
COPY ./ /build
RUN apk add --no-cache clang make \
&& cd /build \
&& make \
&& chmod +x webserv \
&& cp webserv /bin/webserv
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 [ "/bin/webserv", "$WEBSERV-CONF"]
RUN [ "webserv", "/sample.toml"]