mirror of
https://codeberg.org/JasterV/chat-rooms-actix.git
synced 2026-04-27 02:15:42 +00:00
Refresh Docker
This commit is contained in:
parent
c681d2282b
commit
96219b8f15
2 changed files with 11 additions and 4 deletions
3
.dockerignore
Normal file
3
.dockerignore
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
*
|
||||||
|
!src
|
||||||
|
!Cargo.*
|
||||||
12
Dockerfile
12
Dockerfile
|
|
@ -1,4 +1,4 @@
|
||||||
FROM rust:1.50.0 as build
|
FROM rust:1.78.0 as build
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
@ -6,8 +6,12 @@ RUN cargo build --release
|
||||||
RUN mkdir -p /build-out
|
RUN mkdir -p /build-out
|
||||||
RUN cp target/release/actix-messaging /build-out/
|
RUN cp target/release/actix-messaging /build-out/
|
||||||
|
|
||||||
# Ubuntu 18.04
|
# Ubuntu 24.10
|
||||||
FROM ubuntu:18.04 as production
|
FROM ubuntu:24.10 as production
|
||||||
|
|
||||||
RUN apt-get update && apt-get -y install ca-certificates libssl-dev && rm -rf /var/lib/apt/lists/*
|
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" ]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue