Dockerfiles
This commit is contained in:
@@ -0,0 +1,16 @@
|
|||||||
|
#for x86
|
||||||
|
FROM monster1025/alpine86-python
|
||||||
|
|
||||||
|
#for x64
|
||||||
|
#FROM jfloff/alpine-python:3.4
|
||||||
|
|
||||||
|
ENV LIBRARY_PATH=/lib:/usr/lib
|
||||||
|
|
||||||
|
ADD src/requirements.txt /
|
||||||
|
RUN pip install --upgrade pip && pip install -r /requirements.txt
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
COPY src /app
|
||||||
|
ADD config.yaml /app/
|
||||||
|
|
||||||
|
CMD ["python", "-u", "/app/main.py"]
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
xiaomi:
|
xiaomi:
|
||||||
build: .
|
build: .
|
||||||
|
dockerfile: Dockerfile-i386
|
||||||
container_name: xiaomi
|
container_name: xiaomi
|
||||||
net: host
|
net: host
|
||||||
restart: always
|
restart: always
|
||||||
|
|||||||
Reference in New Issue
Block a user