mirror of
https://github.com/datafolklabs/cement.git
synced 2026-02-06 13:56:49 +00:00
Rework Docker on Alpine
This commit is contained in:
parent
7b87113d6b
commit
99e2417938
@ -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
|
||||
|
||||
@ -6,6 +6,8 @@ services:
|
||||
context: .
|
||||
dockerfile: docker/Dockerfile.dev
|
||||
hostname: cement
|
||||
stdin_open: true
|
||||
tty: true
|
||||
volumes:
|
||||
- ".:/usr/src/app"
|
||||
links:
|
||||
|
||||
@ -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"]
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
# The following are only required in development, not production
|
||||
# The following are only required for Cement development
|
||||
nose
|
||||
coverage
|
||||
sphinx
|
||||
|
||||
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user