mirror of
https://github.com/traccar/traccar-docker
synced 2024-11-15 00:13:02 +00:00
19 lines
644 B
Docker
19 lines
644 B
Docker
FROM openjdk:8-jre-slim
|
|
|
|
ENV TRACCAR_VERSION 4.5
|
|
|
|
WORKDIR /opt/traccar
|
|
|
|
RUN set -ex && \
|
|
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 && \
|
|
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"]
|