Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .

Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading