diff --git a/Dockerfile b/Dockerfile index 3aaede3..c4650fd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,8 @@ 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 -RUN mkdir /usr/include/swebs -COPY --from=build /swebs/src/swebs /usr/include/swebs/ - -RUN useradd -M swebs +RUN make && make install ENTRYPOINT [ "swebs", "-s", "/site/sitefile" ]