Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

no root user + docker ignore dockerfile #52

Merged
merged 2 commits into from
Nov 22, 2021
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
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ _data/
.env.local
flagr.sqlite
./browser/flagr-ui/node_modules
Dockerfile
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@ COPY --from=npm_builder /go/src/github.com/openflagr/flagr/browser/flagr-ui/dist
ADD ./buildscripts ./buildscripts
ADD ./buildscripts/demo_sqlite3.db /data/demo_sqlite3.db

RUN addgroup -S appgroup && adduser -S appuser -G appgroup
USER appuser

EXPOSE 18000
CMD ./flagr
2 changes: 2 additions & 0 deletions integration_tests/Dockerfile-Integration-Test
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ ENV HOST=0.0.0.0
ENV PORT=18000
ENV FLAGR_DB_DBDRIVER=sqlite3
ENV FLAGR_RECORDER_ENABLED=false
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
USER appuser
EXPOSE 18000
CMD ./flagr