Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Sep 27, 2019
1 parent e5ac63d commit 59d268f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ jobs:
-
name: Docker Buildx
run: |
docker buildx build --platform linux/amd64 --load \
--tag ${{ steps.prepare.outputs.build_tag }} \
--file Dockerfile .
docker buildx build --load --tag ${{ steps.prepare.outputs.build_tag }} --file Dockerfile .
-
name: Swarm init
run: |
Expand Down
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

## 1.5.0 (2019/09/27)

* Run container as non-root user
* Update libs
* Go 1.12.10

Expand Down
5 changes: 0 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,10 @@ LABEL maintainer="CrazyMax" \
RUN apk --update --no-cache add \
ca-certificates \
libressl \
shadow \
&& addgroup -g 1000 swarm-cronjob \
&& adduser -u 1000 -G swarm-cronjob -s /sbin/nologin -D swarm-cronjob \
&& rm -rf /tmp/* /var/cache/apk/*

COPY --from=builder /app/swarm-cronjob /usr/local/bin/swarm-cronjob
COPY --from=builder /usr/local/go/lib/time/zoneinfo.zip /usr/local/go/lib/time/zoneinfo.zip
RUN swarm-cronjob --version

USER swarm-cronjob

ENTRYPOINT [ "swarm-cronjob" ]

0 comments on commit 59d268f

Please sign in to comment.