forked from duolingo/pre-commit-hooks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (29 loc) · 958 Bytes
/
Dockerfile
File metadata and controls
35 lines (29 loc) · 958 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM alpine:3.8
# Alpine base packages
RUN apk update && apk upgrade && apk add --no-cache \
bash \
git \
nodejs-npm \
openjdk8 \
python3
# Alpine tool packages
RUN apk update && apk upgrade && apk add --no-cache \
terraform
# Python packages
RUN pip3 install --upgrade pip && pip3 install \
black==19.3b0
# GitHub binaries
RUN wget https://github.com/google/google-java-format/releases/download/google-java-format-1.7/google-java-format-1.7-all-deps.jar
RUN wget https://github.com/shyiko/ktlint/releases/download/0.34.2/ktlint && chmod +x ktlint
# NPM packages
# https://github.com/npm/npm/issues/20861#issuecomment-400786321
RUN npm config set unsafe-perm true && npm install -g \
prettier@1.18.2 \
svgo@1.3.0 \
typescript@3.6.3 \
&& npm install \
@types/node@12.7.8
# Local files
COPY . .
RUN tsc --noUnusedLocals --noUnusedParameters --strict entry.ts \
&& mv entry.js entry && chmod +x entry && touch /emptyfile