Fix building standalone image

This commit is contained in:
Tulir Asokan 2019-10-23 01:53:47 +03:00
parent fa77005121
commit 6082a47fdc
2 changed files with 6 additions and 3 deletions

View File

@ -41,7 +41,7 @@ build standalone:
stage: build stage: build
script: script:
- docker pull $CI_REGISTRY_IMAGE:standalone || true - docker pull $CI_REGISTRY_IMAGE:standalone || true
- docker build --pull --cache-from $CI_REGISTRY_IMAGE:standalone --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA-standalone maubot/standalone - docker build --pull --cache-from $CI_REGISTRY_IMAGE:standalone --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA-standalone . -f maubot/standalone/Dockerfile
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA-standalone - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA-standalone
push latest standalone: push latest standalone:

View File

@ -1,6 +1,8 @@
FROM docker.io/alpine:3.10 FROM docker.io/alpine:3.10
RUN apk add --no-cache --virtual .build-deps \ COPY . /opt/maubot
RUN cd /opt/maubot \
&& apk add --no-cache --virtual .build-deps \
python3-dev \ python3-dev \
libffi-dev \ libffi-dev \
build-base \ build-base \
@ -9,6 +11,7 @@ RUN apk add --no-cache --virtual .build-deps \
py3-sqlalchemy \ py3-sqlalchemy \
py3-attrs \ py3-attrs \
py3-bcrypt \ py3-bcrypt \
py3-cffi \
ca-certificates \ ca-certificates \
su-exec \ su-exec \
py3-psycopg2 \ py3-psycopg2 \
@ -16,5 +19,5 @@ RUN apk add --no-cache --virtual .build-deps \
py3-jinja2 \ py3-jinja2 \
py3-packaging \ py3-packaging \
py3-markdown \ py3-markdown \
&& pip3 install maubot \ && pip3 install . \
&& apk del .build-deps && apk del .build-deps