RIP NWS
Some checks failed
Create and publish a Docker image / build-and-push-image (push) Failing after 1h5m57s

This commit is contained in:
Nicholas Orlowsky 2025-04-04 16:49:33 -04:00
parent 52afac5028
commit 6bd69f6c5b
No known key found for this signature in database
GPG key ID: A9F3BA4C0AA7A70B
11 changed files with 2298 additions and 19 deletions

View file

@ -1,14 +1,23 @@
FROM rust:1.82 as build
FROM rust:alpine AS builder
ENV PKG_CONFIG_ALLOW_CROSS=1
WORKDIR /app/src
RUN USER=root
WORKDIR .
COPY . .
RUN apk add pkgconfig openssl-dev libc-dev openssl-libs-static
COPY ./ ./
RUN cargo build --release
RUN cargo install --path .
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
EXPOSE 80
ENTRYPOINT ["website"]
ENTRYPOINT ["/app/website"]