traccar-docker/debian/Dockerfile

19 lines
644 B
Docker
Raw Permalink Normal View History

2019-05-01 09:45:19 +00:00
FROM openjdk:8-jre-slim
2019-05-10 20:17:55 +00:00
ENV TRACCAR_VERSION 4.5
WORKDIR /opt/traccar
RUN set -ex && \
2019-05-10 20:00:17 +00:00
apt-get update &&\
TERM=xterm DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends wget && \
wget -qO /tmp/traccar.zip https://github.com/traccar/traccar/releases/download/v$TRACCAR_VERSION/traccar-other-$TRACCAR_VERSION.zip && \
unzip -qo /tmp/traccar.zip -d /opt/traccar && \
2019-05-10 20:00:17 +00:00
apt-get autoremove --yes wget && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/*
ENTRYPOINT ["java", "-Xms512m", "-Xmx512m", "-Djava.net.preferIPv4Stack=true"]
CMD ["-jar", "tracker-server.jar", "conf/traccar.xml"]