mirror of
https://github.com/UiO-Gaming/ShiteMusicBot.git
synced 2026-11-06 22:34:30 +01:00
Docker InitTest
This commit is contained in:
1 parent
a00eb5e945
commit
3ee272d94a
2 files changed
+35
No files matched your search
@@ -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
@@ -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
|
||||
Reference in new issue
Block a user