Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
remove limits from docker compose
Browse files Browse the repository at this point in the history
Use ubuntu-latest as final image
  • Loading branch information
alessiodam committed Jun 25, 2024
1 parent 4156584 commit 8cb1e0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ RUN rustup target add $TARGET && \
fi && \
cargo build --release --locked --target $TARGET

FROM debian:buster-slim
FROM ubuntu:latest

ARG TARGET

WORKDIR /app

RUN apt-get update && apt-get install -y libssl-dev
RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*

COPY --from=builder /app/target/${TARGET}/release/netchat-server /usr/local/bin/netchat-server
COPY --from=builder /app/config.toml /app/config.toml
Expand Down
3 changes: 0 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,3 @@ services:
- ./config.toml:/app/config.toml
- ./netchat.db:/app/netchat.db
restart: always
cpus: 2
mem_limit: 1g
mem_reservation: 512m

0 comments on commit 8cb1e0d

Please sign in to comment.