From 39640e6c5f6dd84a604f0dadb8a603816643feaf Mon Sep 17 00:00:00 2001 From: lathoub <4082369+lathoub@users.noreply.github.com> Date: Sat, 14 Sep 2024 21:29:17 +0200 Subject: [PATCH] Update Dockerfile --- Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4d89f29..6c10dd3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,13 @@ RUN npm install # Bundle app source COPY src/ src/ COPY local*.yml ./ +COPY data/ /home/node/ocapi/data -EXPOSE 8080 +ENV DATA_PATH=/home/node/ocapi/data +ENV PORT=8080 -CMD [ "node", "src/index.js" ] \ No newline at end of file +EXPOSE ${PORT} + +CMD [ "node", "src/index.js" ] + +/home/node/ocapi/data/datasets/gemeenteGrens.yml \ No newline at end of file