Skip to content

Commit

Permalink
Fix building standalone image
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Oct 22, 2019
1 parent fa77005 commit 6082a47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ build standalone:
stage: build
script:
- 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

push latest standalone:
Expand Down
7 changes: 5 additions & 2 deletions maubot/standalone/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
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 \
libffi-dev \
build-base \
Expand All @@ -9,12 +11,13 @@ RUN apk add --no-cache --virtual .build-deps \
py3-sqlalchemy \
py3-attrs \
py3-bcrypt \
py3-cffi \
ca-certificates \
su-exec \
py3-psycopg2 \
py3-ruamel.yaml \
py3-jinja2 \
py3-packaging \
py3-markdown \
&& pip3 install maubot \
&& pip3 install . \
&& apk del .build-deps

0 comments on commit 6082a47

Please sign in to comment.