-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
18 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
*.md | ||
.* | ||
Dockerfile | ||
docker-compose.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,40 +2,30 @@ FROM alpine:3.10.3 | |
|
||
LABEL maintainer="Nikita Sobolev <[email protected]>" | ||
LABEL vendor="wemake.services" | ||
LABEL version="0.1.0" | ||
LABEL version="0.2.0" | ||
|
||
ARG CADDY_VERSION="0.10.12" | ||
ARG FOREGO_VERSION="0.16.1" | ||
ARG DOCKER_GEN_VERSION="0.7.4" | ||
|
||
ENV CADDYPATH="/etc/caddy" | ||
ENV DOCKER_HOST unix:///tmp/docker.sock | ||
ENV DOCKER_HOST="unix:///tmp/docker.sock" | ||
|
||
|
||
# Install wget and install/updates certificates | ||
|
||
# Install all dependenices: | ||
RUN apk update && apk upgrade \ | ||
&& apk add --no-cache bash openssh-client git \ | ||
&& apk add --no-cache --virtual .build-dependencies curl wget tar | ||
|
||
|
||
# Install Forego | ||
|
||
RUN wget --quiet "https://github.com/jwilder/forego/releases/download/v${FOREGO_VERSION}/forego" \ | ||
&& apk add --no-cache --virtual .build-dependencies curl wget tar \ | ||
# Install Forego | ||
&& wget --quiet "https://github.com/jwilder/forego/releases/download/v${FOREGO_VERSION}/forego" \ | ||
&& mv ./forego /usr/bin/forego \ | ||
&& chmod u+x /usr/bin/forego | ||
|
||
|
||
# Install docker-gen | ||
|
||
RUN wget --quiet "https://github.com/jwilder/docker-gen/releases/download/$DOCKER_GEN_VERSION/docker-gen-alpine-linux-amd64-$DOCKER_GEN_VERSION.tar.gz" \ | ||
&& tar -C /usr/bin -xvzf "docker-gen-alpine-linux-amd64-$DOCKER_GEN_VERSION.tar.gz" \ | ||
&& rm "/docker-gen-alpine-linux-amd64-$DOCKER_GEN_VERSION.tar.gz" | ||
|
||
|
||
# Install Caddy | ||
|
||
RUN curl --silent --show-error --fail --location \ | ||
&& chmod u+x /usr/bin/forego \ | ||
# Install docker-gen | ||
&& wget --quiet "https://github.com/jwilder/docker-gen/releases/download/${DOCKER_GEN_VERSION}/docker-gen-alpine-linux-amd64-${DOCKER_GEN_VERSION}.tar.gz" \ | ||
&& tar -C /usr/bin -xvzf "docker-gen-alpine-linux-amd64-${DOCKER_GEN_VERSION}.tar.gz" \ | ||
&& rm "/docker-gen-alpine-linux-amd64-${DOCKER_GEN_VERSION}.tar.gz" \ | ||
# Install Caddy | ||
&& curl --silent --show-error --fail --location \ | ||
--header "Accept: application/tar+gzip, application/x-gzip, application/octet-stream" -o - \ | ||
"https://github.com/mholt/caddy/releases/download/v${CADDY_VERSION}/caddy_v${CADDY_VERSION}_linux_amd64.tar.gz" \ | ||
| tar --no-same-owner -C /usr/bin -xz \ | ||
|
@@ -49,7 +39,7 @@ VOLUME /etc/caddy | |
|
||
# Starting app: | ||
|
||
ADD . /code | ||
COPY . /code | ||
WORKDIR /code | ||
|
||
ENTRYPOINT ["sh", "/code/docker-entrypoint.sh"] | ||
|