2019-05-01 09:45:19 +00:00
|
|
|
FROM openjdk:8-jre-slim
|
2017-09-03 13:08:05 +00:00
|
|
|
|
2019-05-10 20:17:55 +00:00
|
|
|
ENV TRACCAR_VERSION 4.5
|
2017-09-03 13:08:05 +00:00
|
|
|
|
|
|
|
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 && \
|
2017-09-03 13:08:05 +00:00
|
|
|
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/*
|
2017-09-03 13:08:05 +00:00
|
|
|
|
2018-09-10 20:49:31 +00:00
|
|
|
ENTRYPOINT ["java", "-Xms512m", "-Xmx512m", "-Djava.net.preferIPv4Stack=true"]
|
2017-09-03 13:08:05 +00:00
|
|
|
|
2018-09-10 20:49:31 +00:00
|
|
|
CMD ["-jar", "tracker-server.jar", "conf/traccar.xml"]
|