Add Dockerfile
This commit is contained in:
31
Dockerfile
Normal file
31
Dockerfile
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND=noninteractive \
|
||||||
|
JOTTA_TOKEN="**None**" \
|
||||||
|
JOTTA_DEVICE="docker-jottacloud" \
|
||||||
|
JOTTA_SCANINTERVAL="12h" \
|
||||||
|
LOCALTIME="Asia/Taipei" \
|
||||||
|
STARTUP_TIMEOUT=15 \
|
||||||
|
JOTTAD_SYSTEMD=0 \
|
||||||
|
TZ=UTC
|
||||||
|
|
||||||
|
VOLUME ["/data"]
|
||||||
|
|
||||||
|
# Base packages + Jottacloud repo
|
||||||
|
RUN apt-get update -y && \
|
||||||
|
apt-get upgrade -y && \
|
||||||
|
apt-get install -y --no-install-recommends \
|
||||||
|
curl apt-transport-https ca-certificates expect tzdata psmisc gnupg && \
|
||||||
|
curl -fsSL https://repo.jotta.cloud/public.asc -o /usr/share/keyrings/jotta.gpg && \
|
||||||
|
echo "deb [signed-by=/usr/share/keyrings/jotta.gpg] https://repo.jotta.cloud/debian debian main" > /etc/apt/sources.list.d/jotta-cli.list && \
|
||||||
|
apt-get update -y && \
|
||||||
|
apt-get install -y --no-install-recommends jotta-cli && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Entrypoint
|
||||||
|
COPY entrypoint.sh /src/entrypoint.sh
|
||||||
|
RUN chmod +x /src/entrypoint.sh
|
||||||
|
WORKDIR /src
|
||||||
|
|
||||||
|
EXPOSE 14443
|
||||||
|
ENTRYPOINT ["/src/entrypoint.sh"]
|
||||||
Reference in New Issue
Block a user