added Docker build and auth_service.config.dev

This commit is contained in:
wt
2025-06-07 02:14:32 +07:00
parent 1080c8fcd9
commit 0486f1ca60
3 changed files with 32 additions and 5 deletions
+17
View File
@@ -0,0 +1,17 @@
FROM golang:1.24.3 AS build-stage
WORKDIR /app
COPY . .
RUN go build
FROM gcr.io/distroless/base-debian12 AS build-release-stage
WORKDIR /data
COPY --from=build-stage /app/auth_service /auth_service
COPY users.json /data/users.json
COPY auth_service.config /data/auth_service.config
ENTRYPOINT [ "/auth_service" ]
+10
View File
@@ -0,0 +1,10 @@
USERS_FILE=users.json
USERS_DB=users.db
ENABLE_SELF_REGISTER=false
ENABLE_TLS=false
CERT_FILE=/data/file.crt
KEY_FILE=/data/file/key
SERVER_ADDRESS=0.0.0.0
SERVER_PORT=8090
+5 -5
View File
@@ -1,10 +1,10 @@
USERS_FILE=users.json
USERS_DB=users.db
USERS_FILE=/data/users.json
USERS_DB=/data/users.db
ENABLE_SELF_REGISTER=false
ENABLE_TLS=false
CERT_FILE=/home/tola/certs/localhost/localhost.crt
KEY_FILE=/home/tola/certs/localhost/localhost.key
CERT_FILE=/data/file.crt
KEY_FILE=/data/file/key
SERVER_ADDRESS=localhost
SERVER_ADDRESS=0.0.0.0
SERVER_PORT=8090