aboutsummaryrefslogtreecommitdiff
path: root/setup/docker/Dockerfile
diff options
context:
space:
mode:
authordrecchia <danilo@deltatecnologia.com>2016-06-09 20:35:24 -0300
committerdrecchia <danilo@deltatecnologia.com>2016-06-09 20:35:24 -0300
commit049bab3bdb25acdf4f0c8cf4eb8cad200b860066 (patch)
treee86f297ff8110ac7bd5800643c7067ff9d40a242 /setup/docker/Dockerfile
parent3f19cd0c34e5454f5f1feed3465c45ac638cb0d2 (diff)
downloadtrackermap-server-049bab3bdb25acdf4f0c8cf4eb8cad200b860066.tar.gz
trackermap-server-049bab3bdb25acdf4f0c8cf4eb8cad200b860066.tar.bz2
trackermap-server-049bab3bdb25acdf4f0c8cf4eb8cad200b860066.zip
- 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