Some checks failed
Create and publish a Docker image / build-and-push-image (push) Failing after 1h5m57s
24 lines
418 B
Docker
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"]
|