Skip to content

Commit

Permalink
chore: test dockerhub build
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorfdl committed Jun 18, 2024
1 parent ba45e8b commit 53d0dc2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
15 changes: 7 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ axum = "0.7.5"
axum-server = { version = "0.6.0", features = ["tls-rustls", "tls-openssl"] }
clap = { version = "4.5.4", features = ["derive"] }
config = "0.14.0"
dotenvy = "0.15.7"
dotenvy_macro = "0.15.7"
env_logger = "0.11.3"
home = "0.5.9"
Expand Down
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN /bin/bash -c 'if [ -z "$CARGO_SERVER_SSL_CA" ]; then echo "Error: CARGO_SERV
if [ -z "$CARGO_SERVER_SSL_KEY" ]; then echo "Error: CARGO_SERVER_SSL_KEY is not set"; exit 1; fi'

RUN apt update
RUN apt install -y protobuf-compiler libssl-dev gcc pkg-config build-essential
RUN apt install -y protobuf-compiler libssl-dev gcc pkg-config build-essential cmake

RUN mkdir -p ${TAGOIO_SOURCE_FOLDER}
WORKDIR ${TAGOIO_SOURCE_FOLDER}
Expand All @@ -26,11 +26,14 @@ RUN touch .env

RUN cargo build --release

# Unset the SSL environment variables
RUN unset CARGO_SERVER_SSL_CA CARGO_SERVER_SSL_CERT CARGO_SERVER_SSL_KEY

FROM debian:bookworm-slim
ARG TAGOIO_SOURCE_FOLDER="/tago-io"

RUN apt update
RUN apt install -y build-essential netcat-traditional ca-certificates
RUN apt install -y openssl build-essential netcat-traditional ca-certificates
RUN apt-get clean && rm -rf /var/lib/apt/lists/*

RUN mkdir -p ${TAGOIO_SOURCE_FOLDER}
Expand Down

0 comments on commit 53d0dc2

Please sign in to comment.