Added docker

This commit is contained in:
Nate Choe
2022-04-04 12:19:39 -05:00
parent 8dd0e6a06c
commit 00bbd9c1d4
5 changed files with 52 additions and 0 deletions

12
Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM debian:stable-slim AS build
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y libgnutls28-dev libgnutls30 gcc make pkg-config
COPY . /swebs
WORKDIR /swebs
RUN make
FROM debian:stable-slim AS run
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y libgnutls28-dev libgnutls30
COPY --from=build /swebs/build/swebs /usr/sbin/swebs
COPY ./site /site
ENTRYPOINT [ "swebs", "-s", "/site/sitefile" ]