ADD alpine-minirootfs-3.21.3-x86_64.tar.gz / # buildkit |
CMD ["/bin/sh"] |
RUN /bin/sh -c apk add --no-cache openssl libssl3 libcrypto3 # buildkit |
RUN /bin/sh -c mkdir -p /app/frontend # buildkit |
RUN /bin/sh -c mkdir /data # buildkit |
WORKDIR /app |
COPY /usr/local/cargo/bin/peazyrsa /usr/local/bin/peazyrsa # buildkit |
COPY /app/target/release/peazyweb-backend /usr/local/bin/peazyweb-backend # buildkit |
COPY /app/frontend/dist/ /app/frontend # buildkit |
VOLUME [/data] |
ENV GENERATION_BASE_DIRECTORY=/data |
ENV GENERATION_BIN=/usr/local/bin/peazyrsa |
ENV USE_OPENSSL=yes |
ENV OPENSSL_BIN=/usr/bin/openssl |
ENV FRONTEND_BASE=/app/frontend |
ENV ROCKET_ADDRESS=0.0.0.0 |
ENV ROCKET_PORT=80 |
EXPOSE map[80/tcp:{}] |
ENTRYPOINT ["/usr/local/bin/peazyweb-backend"] |