fix Dockerfile local to use osm_lcm as a module
[osm/LCM.git] / Dockerfile.local
index 00f0402..e488291 100644 (file)
@@ -16,7 +16,7 @@
 FROM ubuntu:16.04
 
 # Set the working directory to /app
-WORKDIR /app/LCM/osm_lcm
+WORKDIR /app/LCM
 
 RUN apt-get update && apt-get install -y git tox python3 \
     python3-pip python3-aiohttp python3-jinja2 \
@@ -84,7 +84,7 @@ ENV OSMLCM_GLOBAL_LOGLEVEL DEBUG
 ADD . /app/LCM
 
 # Run app.py when the container launches
-CMD ["python3", "lcm.py"]
+CMD python3 -m osm_lcm.lcm
 
 # HEALTHCHECK --interval=120s --timeout=15s --retries=1 \
-#     CMD python3 lcm.py --health-check || exit 1
+#     CMD python3 -m osm_lcm.lcm --health-check || exit 1