Skip to content

Commit

Permalink
move configuration in a dedicated directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ludovicm67 committed Feb 3, 2022
1 parent f1d9881 commit 373debd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN apk add --no-cache \
# deploy our custom configuration
WORKDIR /etc/varnish
RUN mkdir -p /templates
COPY default.vcl /templates
COPY config/ /templates/config
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -eux

# generate configuration file
envsubst \
< /templates/default.vcl \
< /templates/config/default.vcl \
> /etc/varnish/default.vcl

# run varnish
Expand Down

0 comments on commit 373debd

Please sign in to comment.