fix docker
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 22m27s
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 22m27s
This commit is contained in:
parent
53f316b59f
commit
52e0a9672f
1 changed files with 2 additions and 9 deletions
11
Dockerfile
11
Dockerfile
|
|
@ -1,12 +1,7 @@
|
|||
FROM rust:alpine as build
|
||||
FROM rust:1.90-bullseye AS build
|
||||
|
||||
ENV PKG_CONFIG_ALLOW_CROSS=1
|
||||
|
||||
ENV SCCACHE_DIR=/build-cache
|
||||
ENV RUSTC_WRAPPER=sccache
|
||||
|
||||
RUN apk add pkgconfig openssl-dev libc-dev openssl-libs-static sccache
|
||||
|
||||
WORKDIR .
|
||||
COPY ./api ./api
|
||||
COPY ./libseptastic/ ./libseptastic/
|
||||
|
|
@ -16,10 +11,8 @@ COPY ./api/templates ./templates
|
|||
|
||||
RUN cd api && cargo build --release
|
||||
|
||||
FROM alpine:latest
|
||||
FROM debian:bullseye-slim
|
||||
WORKDIR /app
|
||||
RUN apk update \
|
||||
&& apk add openssl ca-certificates
|
||||
|
||||
EXPOSE 8080
|
||||
COPY --from=build /api/target/release/septastic_api /app/septastic_api
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue