Docker InitTest

This commit is contained in:
Roxedus committed 2019-01-10 21:07:54 +01:00
1 parent a00eb5e945
commit 3ee272d94a
2 files changed
+35

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
build:
image: docker:stable
services:
- docker:dind
variables:
DOCKER_HOST: tcp://docker:2375
DOCKER_DRIVER: overlay2
CONTAINER_IMAGE: registry.gitlab.com/$CI_PROJECT_PATH
before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.com
stage: build
script:
- docker build -t registry.gitlab.com/ev-1/shite-music-bot .
- docker push $CONTAINER_IMAGE:$CI_COMMIT_SHA
- docker push $CONTAINER_IMAGE:latest
only:
- master
+18
View File
@@ -0,0 +1,18 @@
FROM lsiobase/alpine.python3
LABEL maintainer="Roxedus"
COPY / /app
RUN \
python3 -m pip install -r /app/requirements.txt && \
chown -R abc:abc \
/config \
/app
WORKDIR /app
CMD ln -sf /app/data /config && python3 /app/bot.py
VOLUME /config