-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (16 loc) · 754 Bytes
/
Dockerfile
File metadata and controls
21 lines (16 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM alpine:latest
# Base image to use for builds on the Codependent Codr website
#
# Previously this was all in that site's Dockerfile, but I found
# the installation of npm & the markdownlint gem to be rather
# slow (wasn't uncommon for npm to timeout on Travis builds)
#
# So now we build this base image and use that as the base
# image for CDC builds
RUN apk add --no-cache --update \
python3 make git curl
RUN python3 -m ensurepip && python3 -m pip install --upgrade pip --no-cache-dir
COPY requirements.txt /build/requirements.txt
COPY requirements-float.txt /build/requirements-float.txt
RUN python3 -m pip install -r /build/requirements-float.txt --no-cache-dir && \
python3 -m pip install -r /build/requirements.txt --no-cache-dir