docker compose

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2018-05-17 18:30:38 -04:00
parent 566ab9ff1a
commit 7459424bfb
2 changed files with 10 additions and 8 deletions
+4 -8
View File
@@ -1,14 +1,10 @@
FROM python:3-alpine
FROM ubuntu:18.04
ADD . /httpbin
RUN apk add -U ca-certificates libffi libstdc++ && \
apk add --virtual build-deps build-base libffi-dev && \
# Pip
pip install --no-cache-dir gunicorn /httpbin && \
# Cleaning up
apk del build-deps && \
rm -rf /var/cache/apk/*
RUN apt update -y
RUN apt install python3-pip -y
RUN pip3 install --no-cache-dir gunicorn /httpbin
EXPOSE 80
+6
View File
@@ -0,0 +1,6 @@
version: '2'
services:
httpbin:
build: '.'
ports:
- '80:80'