aboutsummaryrefslogtreecommitdiff
path: root/setup/docker/Dockerfile
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-06-10 11:49:27 +1200
committerGitHub <noreply@github.com>2016-06-10 11:49:27 +1200
commite966778c43ee4a2fa12705cded8648b96ef78f61 (patch)
treee86f297ff8110ac7bd5800643c7067ff9d40a242 /setup/docker/Dockerfile
parent5a2c64cd99134e98e311d694a76d3d22703496c2 (diff)
parent049bab3bdb25acdf4f0c8cf4eb8cad200b860066 (diff)
downloadtrackermap-server-e966778c43ee4a2fa12705cded8648b96ef78f61.tar.gz
trackermap-server-e966778c43ee4a2fa12705cded8648b96ef78f61.tar.bz2
trackermap-server-e966778c43ee4a2fa12705cded8648b96ef78f61.zip
Merge pull request #2009 from drecchia/master-docker
Official Docker build script
Diffstat (limited to 'setup/docker/Dockerfile')
-rw-r--r--setup/docker/Dockerfile24
1 files changed, 24 insertions, 0 deletions
diff --git a/setup/docker/Dockerfile b/setup/docker/Dockerfile
new file mode 100644
index 000000000..a39cad79c
--- /dev/null
+++ b/setup/docker/Dockerfile
@@ -0,0 +1,24 @@
+FROM java:8-alpine
+
+MAINTAINER Danilo Recchia <danilo.recchia@vortus.solutions>
+
+RUN apk upgrade --update && \
+ apk add --update curl bash && \
+ rm -rf /var/cache/apk/* && \
+ mkdir -p /opt/traccar/logs && \
+ mkdir -p /opt/traccar/data
+
+ENV JAVA_OPTS -Xms256m -Xmx1024m
+
+COPY ./tmp/traccar.xml /opt/traccar/traccar.xml
+COPY ./tmp/schema /opt/traccar/schema
+COPY ./tmp/web /opt/traccar/web
+COPY ./tmp/lib /opt/traccar/lib
+COPY ./tmp/traccar-server.jar /opt/traccar/traccar-server.jar
+
+EXPOSE 8082
+EXPOSE 5000-5150
+
+WORKDIR /opt/traccar
+
+ENTRYPOINT ["java","-jar","traccar-server.jar","traccar.xml"] \ No newline at end of file