forked from PrismLauncher/meta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContainerfile
31 lines (24 loc) · 806 Bytes
/
Containerfile
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
FROM python:3.11.5-alpine3.17
ARG UID=1337
ARG GID=1337
RUN pip install pipenv \
&& apk add --no-cache rsync cronie git openssh bash
WORKDIR /app
COPY Pipfile Pipfile.lock .
RUN pipenv install --system --deploy
# add our cronjob
COPY docker/update.cron /etc/cron.d/meta-update
RUN chmod 644 /etc/cron.d/meta-update \
&& crontab /etc/cron.d/meta-update
# install entrypoint
COPY docker/entrypoint.sh /usr/local/bin/entrypoint
RUN chmod +x /usr/local/bin/entrypoint
RUN addgroup -g $GID user \
&& adduser --disabled-password --ingroup user --uid $UID user \
&& mkdir -p /home/user/.ssh \
&& ssh-keyscan github.com > /home/user/.ssh/known_hosts \
&& mkdir -p /app \
&& chown -R $UID:$GID /app /home/user/.ssh
COPY . .
ENTRYPOINT ["/usr/local/bin/entrypoint"]
CMD ["update"]