Refresh Docker

This commit is contained in:
William Desportes 2024-09-28 14:01:05 +02:00
parent c681d2282b
commit 96219b8f15
No known key found for this signature in database
GPG key ID: 90A0EF1B8251A889
2 changed files with 11 additions and 4 deletions

3
.dockerignore Normal file
View file

@ -0,0 +1,3 @@
*
!src
!Cargo.*

View file

@ -1,4 +1,4 @@
FROM rust:1.50.0 as build
FROM rust:1.78.0 as build
WORKDIR /app
COPY . .
@ -6,8 +6,12 @@ RUN cargo build --release
RUN mkdir -p /build-out
RUN cp target/release/actix-messaging /build-out/
# Ubuntu 18.04
FROM ubuntu:18.04 as production
# Ubuntu 24.10
FROM ubuntu:24.10 as production
RUN apt-get update && apt-get -y install ca-certificates libssl-dev && rm -rf /var/lib/apt/lists/*
COPY --from=build /build-out/* /
COPY --from=build /build-out/actix-messaging /usr/local/bin/actix-messaging
ENV PORT=8080
ENTRYPOINT [ "/usr/local/bin/actix-messaging" ]