forked from crudo/macao-pos
Application bound address automatically replaced in dockerfile.
This commit is contained in:
parent
abb76836a1
commit
836186f58b
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue
Block a user