Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change base image to Debian, and add templates #522

Merged

Conversation

catatsuy
Copy link
Owner

@catatsuy catatsuy commented Aug 12, 2024

This pull request includes several changes to the webapp/golang/Dockerfile to update the base image and improve the build process. The most important changes include switching the base image from Alpine to Debian and updating the cache mount points for package management.

Base image update:

  • webapp/golang/Dockerfile: Changed the base image from alpine:3.20 to debian:bookworm-slim to leverage Debian's package management system.

Package management improvements:

  • webapp/golang/Dockerfile: Updated the cache mount points to /var/lib/apt and /var/cache/apt for Debian's apt-get package manager, and installed openssl as a runtime dependency.

Additional changes:

  • webapp/golang/Dockerfile: Added WORKDIR /home/webapp to set the working directory for the application.
  • webapp/golang/Dockerfile: Copied the ./templates directory into the Docker image to ensure necessary templates are available at runtime.

@catatsuy catatsuy force-pushed the fix-change-docker-context-and-base-image-to-golang-and-debian branch from 48a38de to 3de9bf9 Compare August 12, 2024 05:32
@catatsuy catatsuy force-pushed the fix-change-docker-context-and-base-image-to-golang-and-debian branch from 3de9bf9 to 8745f28 Compare August 12, 2024 06:00
@catatsuy catatsuy merged commit ff443e8 into master Aug 12, 2024
4 checks passed
@catatsuy catatsuy deleted the fix-change-docker-context-and-base-image-to-golang-and-debian branch August 12, 2024 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant