Skip to content

Commit e2c2023

Browse files
authored
Use Docker Hub build environment values (scrapd#61)
Uses the Docker Hub build environment values in order to ensure the correct version of ScrAPD is installed into the image. Fixes scrapd#54
1 parent b85c592 commit e2c2023

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
FROM python:3.7.2-alpine3.9
22
LABEL MAINTAINER="Rémy Greinhofer <[email protected]>"
33

4+
ARG DOCKER_TAG
5+
ENV VERSION ${DOCKER_TAG:+==$DOCKER_TAG}
6+
47
WORKDIR /usr/src/app
58

69
# Install the packages.
@@ -10,6 +13,6 @@ RUN apk add --no-cache g++ \
1013
libxslt-dev \
1114
musl-dev \
1215
openssl-dev \
13-
&& pip install scrapd==1.3.0
16+
&& pip install scrapd${VERSION}
1417

1518
ENTRYPOINT ["scrapd"]

0 commit comments

Comments
 (0)