20 lines
692 B
Text
20 lines
692 B
Text
FROM alpine:3.11
|
|
|
|
ENV PYTHON_VERSION=3.8.2-r0
|
|
ENV APP_PORT 8080
|
|
ENV BUILD_DIR /tmp/build
|
|
|
|
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 curl python3-dev==${PYTHON_VERSION} gcc musl-dev libffi-dev openssl-dev && \
|
|
pip3 install poetry && \
|
|
poetry build && \
|
|
pip3 install ${BUILD_DIR}/dist/butterrobot-*.tar.gz && \
|
|
rm -rf ${BUILD_DIR}
|
|
COPY ./docker/bin/start-server.sh /usr/local/bin/start-server
|
|
|
|
CMD ["/usr/local/bin/start-server"]
|