-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (26 loc) · 837 Bytes
/
Dockerfile
File metadata and controls
36 lines (26 loc) · 837 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
36
FROM wetransform/hale-cli:6.1.6
MAINTAINER Simon Templer <simon@wetransform.to>
# add build info - see hooks/build and http://label-schema.org/
# ARG BUILD_DATE
# ARG VCS_REF
# ARG VCS_URL
# LABEL org.opencontainers.image.created=$BUILD_DATE \
# org.opencontainers.image.source=$VCS_URL \
# org.opencontainers.image.revision=$VCS_REF
USER root
# data directory - not using the base images volume because then the permissions cannot be adapted
ENV DATA_DIR /opt/data
# Install needed utilities and setup folders
RUN apt-get update -y && \
apt-get install -y curl unzip && \
apt-get autoremove -y && \
apt-get clean && \
mkdir -p /opt/data
# Fix permissions
RUN chmod -R a+rwx $DATA_DIR
USER nobody
# declare volume late so permissions apply
VOLUME /opt/data
# overwrite entrypoint
ENTRYPOINT []
CMD [/hale/bin/hale]