Home Linux Containers
Set the parent image

FROM alpine:3.8


Set the working directory to /app

WORKDIR /app


Copy the current directory content to /app

ADD ./app


Open port 80 to outside this container

EXPOSE 80


Define an environment variable

ENV NAME myvar


Run a commend when the container lauches

CMD ["python", "app.py"]


Set a proxy

ENV http_proxy host:port
ENV https_proxy host:port