Skip to content

Commit

Permalink
Updated Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Lentink committed Dec 29, 2021
1 parent b57a998 commit 56a925d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM alpine:latest

COPY go-transip-dyndns /usr/bin
RUN echo '* * * * * /usr/bin/go-transip-dyndns && echo .' > /etc/crontabs/root
CMD ["crond", "-f", "-l", "2"]
CMD ["/usr/bin/go-transip-dyndns", "update", "-k"]
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ BUILT_VERSION=v1.0.2
LDFLAGS=-ldflags "-X main.ApplicationVersion=${BUILT_VERSION} -w -s"
TRAVISBUILD?=off
all: clean linting test-release
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))

clean:
@-rm test-report.out
Expand Down Expand Up @@ -33,3 +34,9 @@ release:

test-release:
goreleaser release --rm-dist --skip-validate --skip-publish

test-docker:
docker run --rm -v ${ROOT_DIR}/go-transip-dyndns.toml:/etc/go-transip-dyndns.toml jlentink/go-transip-dyndns:latest

test-docker-shell:
docker run -it --rm -v ${ROOT_DIR}/go-transip-dyndns.toml:/etc/go-transip-dyndns.toml jlentink/go-transip-dyndns:latest /bin/sh

0 comments on commit 56a925d

Please sign in to comment.