added forking

This commit is contained in:
Pin
2022-02-21 20:59:44 -05:00
parent 2f73f776f6
commit 16801086ff
6 changed files with 213 additions and 64 deletions

View File

@@ -1,11 +1,27 @@
FROM ubuntu:latest
RUN apt-get update && \
apt-get install -y openssl
ENV DEBIAN_FRONTEND=noninteractive
COPY ./bin/seaweb /bin/
COPY ./certs/cert.pem /etc/ssl/certs/
COPY ./certs/key.pem /etc/ssl/private/
RUN apt-get update && \
apt-get install \
-y openssl libssl-dev make gcc pkg-config
COPY Makefile /src/
COPY src/ /src/src/
COPY cmd/ /src/cmd/
COPY include/ /src/include/
COPY ca/ /src/ca/
COPY content/ /var/www/html
RUN mkdir -p /var/log/seaweb
WORKDIR /src/
RUN make && make install
# Create Certificates
RUN printf "y\ny\n" | make genCerts
EXPOSE 8080/tcp