Rework Docker on Alpine

This commit is contained in:
BJ Dierkes 2017-04-18 22:34:42 -05:00
parent 7b87113d6b
commit 99e2417938
5 changed files with 23 additions and 10 deletions

View File

@ -1,2 +1,6 @@
FROM python:3.6-onbuild
FROM python:3.6-alpine
MAINTAINER BJ Dierkes <derks@datafolklabs.com>
WORKDIR /app
COPY . /app
RUN python setup.py install \
&& rm -rf /app

View File

@ -6,6 +6,8 @@ services:
context: .
dockerfile: docker/Dockerfile.dev
hostname: cement
stdin_open: true
tty: true
volumes:
- ".:/usr/src/app"
links:

View File

@ -1,9 +1,14 @@
FROM python:3.6-onbuild
FROM python:3.6-alpine
MAINTAINER BJ Dierkes <derks@datafolklabs.com>
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libmemcached-dev \
WORKDIR /app
COPY requirements-dev.txt /app/
RUN apk update \
&& apk add libmemcached-dev \
gcc \
musl-dev \
cyrus-sasl-dev \
zlib-dev \
make \
&& pip install --no-cache-dir -r requirements-dev.txt
CMD ["/bin/bash"]
COPY . /app
CMD ["/bin/ash"]

View File

@ -1,4 +1,4 @@
# The following are only required in development, not production
# The following are only required for Cement development
nose
coverage
sphinx

View File

@ -1 +1,3 @@
# Cement does not have any external dependencies
# Cement core does not have any external dependencies, however optional
# extension might. It is up to the application developer to manage
# requirements for optional extensions/dependencies.