Application bound address automatically replaced in dockerfile.

This commit is contained in:
Notisset 2017-09-27 00:38:18 +02:00
parent abb76836a1
commit 836186f58b
2 changed files with 2 additions and 11 deletions

View File

@ -1,12 +1,14 @@
FROM alpine:latest
MAINTAINER Notisset <notisset@autistici.org>
#Pillow requires the following dependencies to build: musl-dev zlib-dev jpeg-dev gcc python3-dev
RUN apk update && apk add musl-dev zlib-dev jpeg-dev gcc python3 python3-dev
COPY requirements.txt .
RUN pip3 install -r requirements.txt
COPY . /var/www/site
RUN sed -i '/Address/s/= .*/= 0.0.0.0/' /var/www/site/conf/core.ini
EXPOSE 8080
ENTRYPOINT python3 /var/www/site/web.py

View File

@ -1,11 +0,0 @@
[GENERAL]
Address = 0.0.0.0
Port = 8080
[DATABASE]
Engine = sqlite
Path = pos.db
[PRINTER]
Host = 192.168.1.100
Post = 9100