Skip to content

Commit

Permalink
clean up init container build
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulexus committed Oct 3, 2023
1 parent f61866a commit 86f412a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 181 deletions.
18 changes: 15 additions & 3 deletions deploy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
FROM alpine@sha256:48d9183eb12a05c99bcc0bf44a003607b8e941e1d4f41f9ad12bdcc4b5672f86
FROM busybox@sha256:023917ec6a886d0e8e15f28fb543515a5fcd8d938edb091e8147db4efed388ee

COPY . /dist
LABEL org.opencontainers.image.source https://github.com/tkhq/traefik-plugin-geoblock

ENTRYPOINT ["/dist/deploy/install.sh"]
RUN mkdir /dist

COPY go.mod /dist/
COPY go.sum /dist/
COPY .traefik.yml /dist/
COPY LICENSE /dist/
COPY plugin.go /dist/
COPY plugin.go /dist/
COPY vendor /dist/

COPY deploy/install.sh /

ENTRYPOINT ["/install.sh"]
15 changes: 0 additions & 15 deletions deploy/geoblock.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions deploy/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,3 @@ set -e
mkdir -p /plugins-local/src/github.com/nscuro/traefik-plugin-geoblock
cp -R /dist/* /plugins-local/src/github.com/nscuro/traefik-plugin-geoblock/
cp /dist/.traefik.yml /plugins-local/src/github.com/nscuro/traefik-plugin-geoblock/

# Deploy directory is neither needed nor wanted
rm -Rf /plugins-local/src/github.com/nscuro/traefik-plugin-geoblock/deploy
160 changes: 0 additions & 160 deletions deploy/traefik-deploy.yaml

This file was deleted.

0 comments on commit 86f412a

Please sign in to comment.