nws-site/Dockerfile
Nicholas Orlowsky 6bd69f6c5b
Some checks failed
Create and publish a Docker image / build-and-push-image (push) Failing after 1h5m57s
RIP NWS
2025-04-04 16:49:33 -04:00

24 lines
418 B
Docker

FROM rust:alpine AS builder
WORKDIR /app/src
RUN USER=root
RUN apk add pkgconfig openssl-dev libc-dev openssl-libs-static
COPY ./ ./
RUN cargo build --release
FROM alpine:latest
WORKDIR /app
RUN apk update \
&& apk add openssl ca-certificates
EXPOSE 80
COPY --from=builder /app/src/target/release/website /app/website
COPY assets /app/assets
ENV RUST_LOG=info
ENV EXPOSE_PORT=80
ENTRYPOINT ["/app/website"]