Docker cleanup

This commit is contained in:
phoenix
2025-04-13 14:41:45 -04:00
parent 72cf8ca917
commit e8ce577739
2 changed files with 0 additions and 7 deletions
-6
View File
@@ -34,10 +34,7 @@ RUN --mount=type=ssh mkdir src && \
# Copy the actual source code # Copy the actual source code
COPY src ./src COPY src ./src
# If you have other directories like `templates` or `static`, copy them too # If you have other directories like `templates` or `static`, copy them too
# COPY templates ./templates
# COPY static ./static
COPY .env ./.env COPY .env ./.env
# COPY migrations ./migrations
# << --- SSH MOUNT ADDED HERE --- >> # << --- SSH MOUNT ADDED HERE --- >>
# Build *only* dependencies to leverage Docker cache # Build *only* dependencies to leverage Docker cache
@@ -63,9 +60,6 @@ COPY --from=builder /usr/src/app/target/release/icarus .
# Copy other necessary files like .env (if used for runtime config) or static assets # Copy other necessary files like .env (if used for runtime config) or static assets
# It's generally better to configure via environment variables in Docker though # It's generally better to configure via environment variables in Docker though
COPY --from=builder /usr/src/app/.env . COPY --from=builder /usr/src/app/.env .
# COPY --from=builder /usr/src/app/migrations ./migrations
# COPY --from=builder /usr/src/app/templates ./templates
# COPY --from=builder /usr/src/app/static ./static
# Expose the port your Axum app listens on (e.g., 3000 or 8000) # Expose the port your Axum app listens on (e.g., 3000 or 8000)
EXPOSE 3000 EXPOSE 3000
-1
View File
@@ -29,7 +29,6 @@ services:
- "8001:3000" # Map host port 8000 to container port 8000 (adjust container port based on your app's EXPOSE in Dockerfile) - "8001:3000" # Map host port 8000 to container port 8000 (adjust container port based on your app's EXPOSE in Dockerfile)
# environment: # environment:
# Environment variables your API needs, e.g., database connection # Environment variables your API needs, e.g., database connection
# DATABASE_URL: postgresql://icarus:password@auth_db:5432/icarus_auth_db
# Add other necessary environment variables # Add other necessary environment variables
env_file: env_file:
- ../icarus_auth/.env - ../icarus_auth/.env