Dev Dockerfile + Makefile
This commit is contained in:
parent
62c746bab7
commit
825c57e8a9
2 changed files with 17 additions and 6 deletions
|
@ -3,17 +3,17 @@ FROM alpine:3.11
|
||||||
ENV PYTHON_VERSION=3.8.2-r0
|
ENV PYTHON_VERSION=3.8.2-r0
|
||||||
ENV APP_PORT 8080
|
ENV APP_PORT 8080
|
||||||
ENV BUILD_DIR /tmp/build
|
ENV BUILD_DIR /tmp/build
|
||||||
ENV BUTTERROBOT_VERSION 0.0.1
|
|
||||||
|
|
||||||
WORKDIR ${BUILD_DIR}
|
WORKDIR ${BUILD_DIR}
|
||||||
|
COPY README.md ${BUILD_DIR}/README.md
|
||||||
COPY poetry.lock ${BUILD_DIR}/poetry.lock
|
COPY poetry.lock ${BUILD_DIR}/poetry.lock
|
||||||
COPY pyproject.toml ${BUILD_DIR}/pyproject.toml
|
COPY pyproject.toml ${BUILD_DIR}/pyproject.toml
|
||||||
COPY ./butterrobot ${BUILD_DIR}/butterrobot
|
COPY ./butterrobot ${BUILD_DIR}/butterrobot
|
||||||
COPY ./butterrobot_plugins_contrib ${BUILD_DIR}/butterrobot_plugins_contrib
|
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 && \
|
pip3 install poetry && \
|
||||||
poetry build && \
|
poetry build && \
|
||||||
pip3 install ${BUILD_DIR}/dist/butterrobot-${BUTTERROBOT_VERSION}.tar.gz && \
|
pip3 install ${BUILD_DIR}/dist/butterrobot-*.tar.gz && \
|
||||||
rm -rf ${BUILD_DIR}
|
rm -rf ${BUILD_DIR}
|
||||||
COPY ./docker/bin/start-server.sh /usr/local/bin/start-server
|
COPY ./docker/bin/start-server.sh /usr/local/bin/start-server
|
||||||
|
|
||||||
|
|
17
Makefile
17
Makefile
|
@ -3,10 +3,21 @@ setup:
|
||||||
poetry install
|
poetry install
|
||||||
|
|
||||||
docker@build:
|
docker@build:
|
||||||
docker build -t fmartingr/butterrobot .
|
docker build -t fmartingr/butterrobot -f docker/Dockerfile docker
|
||||||
|
|
||||||
podman@build:
|
docker@build-dev:
|
||||||
podman build -t fmartingr/butterrobot .
|
docker build -t fmartingr/butterrobot:dev -f Dockerfile.dev .
|
||||||
|
|
||||||
|
docker@tag-dev:
|
||||||
|
docker tag fmartingr/butterrobot:dev registry.int.fmartingr.network/fmartingr/butterrobot:dev
|
||||||
|
|
||||||
|
docker@push-dev:
|
||||||
|
docker push registry.int.fmartingr.network/fmartingr/butterrobot:dev
|
||||||
|
|
||||||
|
docker@dev:
|
||||||
|
make docker@build-dev
|
||||||
|
make docker@tag-dev
|
||||||
|
make docker@push-dev
|
||||||
|
|
||||||
docker@save:
|
docker@save:
|
||||||
make docker@build
|
make docker@build
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue