-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add back build/Dockerfile for release (#3220)
Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com>
- Loading branch information
1 parent
b396b9a
commit 557b871
Showing
2 changed files
with
31 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json | ||
version: 2 | ||
|
||
project_name: flipt | ||
|
||
|
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,30 @@ | ||
# https://goreleaser.com/docker/ | ||
|
||
ARG BINARY=flipt | ||
|
||
FROM alpine:3.20.0 | ||
|
||
LABEL maintainer="dev@flipt.io" | ||
LABEL org.opencontainers.image.name="flipt" | ||
LABEL org.opencontainers.image.source="https://github.com/flipt-io/flipt" | ||
|
||
RUN apk add --no-cache postgresql-client \ | ||
openssl \ | ||
ca-certificates | ||
|
||
RUN mkdir -p /etc/flipt && \ | ||
mkdir -p /var/opt/flipt | ||
|
||
COPY $BINARY / | ||
COPY config/*.yml /etc/flipt/config/ | ||
|
||
RUN addgroup flipt && \ | ||
adduser -S -D -g '' -G flipt -s /bin/sh flipt && \ | ||
chown -R flipt:flipt /etc/flipt /var/opt/flipt | ||
|
||
EXPOSE 8080 | ||
EXPOSE 9000 | ||
|
||
USER flipt | ||
|
||
CMD ["./flipt"] |