Fix Rocket.toml in Docker

This commit is contained in:
Sijmen 2023-01-02 18:07:31 +00:00
parent f4a0505815
commit 9b066adcd6
2 changed files with 4 additions and 5 deletions

View file

@ -1,7 +1,7 @@
FROM rust:1 AS builder
WORKDIR /usr/src/rooster
COPY Cargo.toml Cargo.lock Rocket.toml ./
COPY Cargo.toml Cargo.lock ./
COPY src ./src
RUN cargo install --path .
@ -11,6 +11,8 @@ FROM debian:buster-slim
ENV ROCKET_ADDRESS=0.0.0.0
EXPOSE 8000
RUN apt-get update && apt-get install -y openssl
COPY Rocket.toml ./
COPY --from=builder /usr/local/cargo/bin/rooster /usr/local/bin/rooster
CMD ["rooster"]

View file

@ -1,5 +1,2 @@
[debug]
sentry_dsn = "" # Debug
[release]
[default]
sentry_dsn = "https://xxx@xxx.ingest.sentry.io/xxx" # TODO Replace with Sentry DSN