Dev Dockerfile + Makefile

This commit is contained in:
Felipe M 2020-07-03 17:35:31 +02:00
parent 62c746bab7
commit 825c57e8a9
Signed by: fmartingr
GPG key ID: 716BC147715E716F
2 changed files with 17 additions and 6 deletions

View file

@ -3,17 +3,17 @@ FROM alpine:3.11
ENV PYTHON_VERSION=3.8.2-r0
ENV APP_PORT 8080
ENV BUILD_DIR /tmp/build
ENV BUTTERROBOT_VERSION 0.0.1
WORKDIR ${BUILD_DIR}
COPY README.md ${BUILD_DIR}/README.md
COPY poetry.lock ${BUILD_DIR}/poetry.lock
COPY pyproject.toml ${BUILD_DIR}/pyproject.toml
COPY ./butterrobot ${BUILD_DIR}/butterrobot
COPY ./butterrobot_plugins_contrib ${BUILD_DIR}/butterrobot_plugins_contrib
RUN apk --update add python3-dev==${PYTHON_VERSION} gcc musl-dev libffi-dev openssl-dev && \
RUN apk --update add curl python3-dev==${PYTHON_VERSION} gcc musl-dev libffi-dev openssl-dev && \
pip3 install poetry && \
poetry build && \
pip3 install ${BUILD_DIR}/dist/butterrobot-${BUTTERROBOT_VERSION}.tar.gz && \
pip3 install ${BUILD_DIR}/dist/butterrobot-*.tar.gz && \
rm -rf ${BUILD_DIR}
COPY ./docker/bin/start-server.sh /usr/local/bin/start-server