mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 19:53:21 +02:00
feat: docker and docker-compose support
Introduced a Dockerfile and compose.yml to allow the application to run inside a Docker container. This removes the need for local system-level dependencies and offers a more predictable environment for the app. README.md was updated to include Docker-related instructions and an additional environment variable `DOCKER_DB_FOLDER` was added on top of existing ones for Docker support.
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
FROM golang:1.20.5-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
COPY adapters ./adapters
|
||||
COPY api ./api
|
||||
COPY domain ./domain
|
||||
COPY main ./main
|
||||
COPY useCases ./useCases
|
||||
|
||||
RUN go mod download
|
||||
RUN go build -o startServer ./main
|
||||
|
||||
CMD ["./startServer"]
|
||||
Reference in New Issue
Block a user