@@ -1,8 +1,8 @@
FROM alpine
ADD i2-bill-erp.tar.gz /app/
-RUN echo "echo '127.0.0.1 i2-bill-erp' > /etc/hosts" >> /app/entrypoint.sh
-RUN echo "/app/i2-bill-erp -f /app/etc/transform.yaml" >> /app/entrypoint.sh
+COPY hosts /app/
+COPY entrypoint.sh /app/
VOLUME [ "/app/etc" ]
EXPOSE 8888
@@ -0,0 +1,2 @@
+cp hosts /etc/hosts
+/app/i2-bill-erp -f /app/etc/transform.yaml
+127.0.0.1 localhost
+127.0.0.1 i2-bill-erp