generated from hadenlabs/base-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
47 lines (36 loc) · 1.01 KB
/
Dockerfile
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
36
37
38
39
40
41
42
43
44
45
46
47
FROM alpine:3.13
ARG VERSION=0.0.0
LABEL maintainer="Team Hadenlabs <hello@hadenlabs.com>" \
org.label-schema.vcs-url="https://github.com/hadenlabs/action-docker-template" \
org.label-schema.version=$VERSION \
org.label-schema.schema-version="1.0"
ENV PATH $PATH:/root/.local/bin
ENV GITHUB_WORKSPACE=/github/workspace
ENV BASE_DEPS \
coreutils
ENV PERSIST_DEPS \
bash \
git \
grep \
jq
ENV BUILD_DEPS \
alpine-sdk \
curl \
fakeroot \
build-base \
freetype-dev \
gcc \
openssl
WORKDIR ${GITHUB_WORKSPACE}
COPY provision/script/entrypoint.sh /entrypoint.sh
RUN apk --no-cache add $BASE_DEPS \
$BASE_DEPS \
&& apk add --no-cache --virtual .build-deps $BUILD_DEPS \
&& sed -i "s/root:\/root:\/bin\/ash/root:\/root:\/bin\/bash/g" /etc/passwd \
&& apk del .build-deps \
&& chmod 755 /entrypoint.sh \
&& rm -rf /root/.cache \
&& rm -rf /var/cache/apk/* \
&& rm -rf /tmp/* \
&& rm -rf /var/tmp/*
ENTRYPOINT ["/entrypoint.sh"]