-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add docker image with wgo to develop
- Loading branch information
1 parent
d96c334
commit 4696a16
Showing
6 changed files
with
68 additions
and
4 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 |
---|---|---|
|
@@ -4,4 +4,4 @@ dashboard: | |
name: DASH1 | ||
datadir: ./dev/data | ||
log: | ||
level: debug | ||
level: info |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Dockerfile.dev | ||
# | ||
FROM golang:1.23.3 | ||
|
||
WORKDIR /app | ||
|
||
#ARG UID=1000 | ||
#ARG GID=1000 | ||
|
||
#RUN groupadd -g $GID appgroup && useradd -l -m -u $UID -g appgroup appuser | ||
|
||
|
||
#USER appuser | ||
RUN go install github.com/bokwoon95/wgo@latest | ||
|
||
COPY go.mod go.sum /app/ | ||
|
||
RUN go mod download | ||
|
||
CMD ["wgo", "run", "cmd/server/main.go"] | ||
|
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
services: | ||
dev: | ||
image: devimage | ||
ports: | ||
- "8080:8080" | ||
volumes: | ||
- ..:/app | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
- ./data:/data | ||
restart: unless-stopped | ||
# user: ${CURRENT_UID} | ||
secrets: | ||
- authkey | ||
|
||
volumes: | ||
tsdata: | ||
tmp: | ||
|
||
secrets: | ||
authkey: | ||
file: ./KEY_FILE |
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