-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to Alpine to fix the strange httpd error
This commit does the following: - Use Alpine 3.18 as a base for building container images - Modify the Apache config files to match what comes with Alpine - The PID file is now in /var/run/apache2 - Remove deprecated statements from docker-compose.yml and Dockerfile(s) - Had to make a small change to cert.go. Don't know why. Worked before?
- Loading branch information
1 parent
17a02cb
commit 06bebef
Showing
8 changed files
with
210 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,19 +11,18 @@ COPY server/service/*.go ./ | |
COPY server/service/database ./database | ||
COPY server/service/utility ./utility | ||
|
||
RUN go build -o /nivlheim -ldflags "-X main.version=${version:-UNDEFINED}" | ||
RUN CGO_ENABLED=0 go build -o /nivlheim -ldflags "-X main.version=${version:-UNDEFINED}" | ||
|
||
## Deploy | ||
FROM ubuntu:latest | ||
MAINTAINER [email protected] | ||
LABEL [email protected] | ||
FROM alpine:3.18 | ||
LABEL [email protected] | ||
LABEL description="Main Nivlheim server exposing API" | ||
|
||
EXPOSE 4040 | ||
|
||
WORKDIR / | ||
|
||
RUN apt-get update -qq && apt-get install -yqq ca-certificates | ||
RUN apk --no-cache add ca-certificates | ||
COPY --from=build /nivlheim /nivlheim | ||
COPY server/server.conf /etc/nivlheim/server.conf | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
version: "3.9" | ||
services: | ||
nivlheimweb: | ||
container_name: docker-nivlheimweb-1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.