mirror of
https://github.com/kennethreitz/httpbin.git
synced 2026-06-05 23:00:18 +00:00
+4
-8
@@ -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
|
||||
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
version: '2'
|
||||
services:
|
||||
httpbin:
|
||||
build: '.'
|
||||
ports:
|
||||
- '80:80'
|
||||
Reference in New Issue
Block a user