-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: added missing writer dockerfile and compose
- Loading branch information
Showing
2 changed files
with
50 additions
and
29 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# SPDX-FileCopyrightText: 2024 NOI Techpark <digital@noi.bz.it> | ||
# | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
FROM golang:1.23.4-bookworm AS base | ||
|
||
FROM base AS build | ||
WORKDIR /app | ||
COPY go.mod . | ||
COPY go.sum . | ||
COPY . . | ||
RUN CGO_ENABLED=0 GOOS=linux go build -o writer | ||
|
||
FROM scratch AS release | ||
COPY --from=build /app/writer /writer | ||
CMD ["/writer"] | ||
|
||
|
||
FROM base AS dev | ||
WORKDIR /code | ||
CMD ["go", "run", "."] |