Skip to content

Commit

Permalink
Adds updated and current Container Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcdonough committed Nov 24, 2024
1 parent 276c150 commit dd42512
Show file tree
Hide file tree
Showing 3 changed files with 165 additions and 243 deletions.
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ COPY ./web/Cargo.toml ./web/Cargo.toml
# Copy the complete source code into the container's working directory
COPY . .

# Set the target directory to ensure binaries are placed in a known location
#ENV CARGO_TARGET_DIR=/usr/src/app/target/aarch64-unknown-linux-gnu/release

# Build the project
RUN cargo build --release --workspace

Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ services:
context: . # Build context is current directory
dockerfile: Dockerfile # Use specified Dockerfile
target: runtime # Use runtime target
platform: linux/arm64 # Specify the platform
container_name: rust-app # Name the container "rust-app"
platform: ${PLATFORM} # Specify the platform
container_name: ${CONTAINER_NAME} # Name the container, default is "rust-app"
environment:
POSTGRES_USER: ${POSTGRES_USER} # Set PostgreSQL user from environment variable
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} # Set PostgreSQL password from environment variable
Expand Down
Loading

0 comments on commit dd42512

Please sign in to comment.