diff --git a/Dockerfile b/Dockerfile index 7bdd558..194fa20 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,8 @@ COPY static/ ./static/ COPY templates/ ./templates/ COPY *.go ./ +RUN mkdir -p /uploads + ARG VERSION=dev RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-X main.version=${VERSION}" -o curier . @@ -24,6 +26,7 @@ ENV CURIER_STORAGE_PATH="/uploads/" COPY --from=builder /app/curier /curier COPY --from=builder /tmp /tmp +COPY --from=builder /uploads /uploads EXPOSE 39800 diff --git a/main.go b/main.go index f19749a..590b2f4 100644 --- a/main.go +++ b/main.go @@ -87,7 +87,7 @@ func parseEnvVars() { } } - fullConfig := "\n\n --- Environment variables ---\n" + fullConfig := " --- Environment variables ---\n" fullConfig += fmt.Sprintf("storagePath : %s\n", storagePath) fullConfig += fmt.Sprintf("host : %s\n", host) fullConfig += fmt.Sprintf("port : %s\n", port)