Skip to content

Commit

Permalink
feat: add user creation in Dockerfile
Browse files Browse the repository at this point in the history
Add a new step in the Dockerfile to create a user with the username "user" and set the default shell to "/bin/bash".

BREAKING CHANGE: None
  • Loading branch information
AleksandarFaraj committed Aug 3, 2023
1 parent c78a8a4 commit a32cb29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY release/tzap-linux-amd64 /usr/local/bin/tzap
ENV TZAPEDITOR=api
RUN useradd -m -s /bin/bash user
USER user
ENTRYPOINT [ "tzap" ]
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ docu:
cd documentation && npm start

dockerbuild:
docker build -t tzapio/tzap .
docker build --no-cache -t tzapio/tzap .
dockerpush:
make build
docker build --no-cache -t tzapio/tzap .
docker push tzapio/tzap

0 comments on commit a32cb29

Please sign in to comment.