Skip to content

Commit

Permalink
pref: Docker Image のサイズを最適化 (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
m1sk9 authored Dec 10, 2023
1 parent e2d4224 commit 17a36e5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ FROM debian:bullseye-slim as Runner

COPY --from=Builder --chown=root:root /root/app/target/release/babyrite /usr/local/bin/babyrite

RUN apt-get update && apt-get install -y libssl-dev ca-certificates

RUN useradd --create-home --user-group babyrite
USER babyrite
WORKDIR /home/babyrite
Expand Down
9 changes: 9 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
services:
app:
image: ghcr.io/m1sk9/babyrite:v0
env_file:
- .env
deploy:
restart_policy:
delay: 5s
max_attempts: 3
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2023-12-01"
channel = "nightly-2023-12-10"
components = ["clippy", "rustfmt"]

0 comments on commit 17a36e5

Please sign in to comment.