-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (18 loc) · 719 Bytes
/
Dockerfile
File metadata and controls
27 lines (18 loc) · 719 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
FROM bmoorman/ubuntu:focal
ARG DEBIAN_FRONTEND=noninteractive
ENV BYTEBIN_PORT=8080
WORKDIR /config
RUN apt-get update \
&& apt-get install --yes --no-install-recommends \
openjdk-21-jre-headless \
jq \
wget \
&& wget --quiet --directory-prefix /opt/bytebin https://ci.lucko.me/job/bytebin/lastSuccessfulBuild/artifact/target/bytebin.jar \
&& apt-get autoremove --yes --purge \
&& apt-get clean \
&& rm --recursive --force /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY bytebin/ /etc/bytebin/
VOLUME /config
EXPOSE ${BYTEBIN_PORT}
CMD ["/etc/bytebin/start.sh"]
HEALTHCHECK --interval=60s --timeout=5s CMD curl --insecure --silent --show-error --fail "http://localhost:${BYTEBIN_PORT}/" || exit 1