Browse Source

base image: debian:stretch-slim -> alpine:3.11

Fabian Peter Hammerle 4 years ago
parent
commit
20344cb29a
2 changed files with 19 additions and 4 deletions
  1. 13 0
      CHANGELOG.md
  2. 6 4
      Dockerfile

+ 13 - 0
CHANGELOG.md

@@ -0,0 +1,13 @@
+# Changelog
+All notable changes to this project will be documented in this file.
+
+The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
+and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+
+## Unreleased
+### Changed
+- base image: `debian:stretch-slim` -> `alpine:3.11`
+
+## 0.2 - 2018-11-03
+
+## 0.1 - 2018-11-03

+ 6 - 4
Dockerfile

@@ -1,9 +1,11 @@
-FROM debian:stretch-slim
+FROM alpine:3.11
 
-RUN apt-get update && apt-get install --yes python-scrapy
+ARG SCRAPY_PACKAGE_VERSION=1.8.0-r0
+ARG SCRAPY_PACKAGE_REPOSITORY=http://dl-cdn.alpinelinux.org/alpine/edge/testing
+RUN apk add --no-cache --repository $SCRAPY_PACKAGE_REPOSITORY \
+        py3-scrapy=$SCRAPY_PACKAGE_VERSION \
+    && adduser -S spider
 
-RUN useradd spider
 USER spider
-
 COPY ./ping.py /ping.py
 ENTRYPOINT ["scrapy", "runspider", "/ping.py"]