-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (30 loc) · 1.27 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
FROM python:3.9-slim
COPY build/app /app
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
python3-dev \
curl \
cron \
&& pip install -r requirements.txt \
&& apt-get purge --auto-remove -y build-essential python3-dev
COPY build/scripts /scripts
RUN echo '*/15 * * * * root /scripts/sync-header.sh' > /etc/cron.d/header
# Metadata
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION
LABEL ca.unb.lib.generator="pywb" \
com.microscaling.docker.dockerfile="/Dockerfile" \
com.microscaling.license="MIT" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.description="preserve.lib.unb.ca serves and archives legacy websites that have been created or hosted by UNB Libraries." \
org.label-schema.name="preserve.lib.unb.ca" \
org.label-schema.schema-version="1.0" \
org.label-schema.url="https://preserve.lib.unb.ca" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/unb-libraries/preserve.lib.unb.ca" \
org.label-schema.vendor="University of New Brunswick Libraries" \
org.label-schema.version=$VERSION \
org.opencontainers.image.source="https://github.com/unb-libraries/preserve.lib.unb.ca"
CMD cron && "/scripts/run.sh"