gitlab-notification/gitlab-app/Dockerfile-mac

22 lines
1.2 KiB
Plaintext
Raw Normal View History

2022-01-26 10:56:18 +03:00
FROM upagge/openjdk-mac-slim:17.0.2
FROM upagge/openjdk-mac-slim:17.0.2
2021-01-15 23:52:32 +03:00
MAINTAINER uPagge <me@upagge.ru>
2022-01-26 10:56:18 +03:00
RUN mkdir -p /bot && adduser gitlabbot --disabled-password && chown -R gitlabbot:gitlabbot /bot
2021-01-15 23:52:32 +03:00
WORKDIR /bot
USER gitlabbot:gitlabbot
COPY target/gitlab-notification.jar app.jar
VOLUME logs
ENV TELEGRAM_PERSON_ID=TELEGRAM_PERSON_ID DATASOURCE_URL=DATASOURCE_URL \
DATASOURCE_PASSWORD=DATASOURCE_PASSWORD DATASOURCE_USERNAME=DATASOURCE_USERNAME \
GITLAB_PERSONAL_TOKEN=GITLAB_PERSONAL_TOKEN TELEGRAM_BOT_TOKEN=TELEGRAM_BOT_TOKEN \
2022-01-26 10:56:18 +03:00
TELEGRAM_BOT_USERNAME=TELEGRAM_BOT_USERNAME GITLAB_URL=GITLAB_URL GITLAB_REPLACE_URL=GITLAB_REPLACE_URL
2021-01-15 23:52:32 +03:00
ENTRYPOINT java -DTELEGRAM_BOT_USERNAME=${TELEGRAM_BOT_USERNAME} \
-DTELEGRAM_BOT_TOKEN=$TELEGRAM_BOT_TOKEN \
-DTELEGRAM_PERSON_ID=$TELEGRAM_PERSON_ID \
-DDATASOURCE_URL=$DATASOURCE_URL \
-DDATASOURCE_PASSWORD=$DATASOURCE_PASSWORD \
-DDATASOURCE_USERNAME=$DATASOURCE_USERNAME \
-DGITLAB_PERSONAL_TOKEN=$GITLAB_PERSONAL_TOKEN \
-DGITLAB_URL=$GITLAB_URL \
2022-01-26 10:56:18 +03:00
-DGITLAB_REPLACE_URL=$GITLAB_REPLACE_URL \
2021-01-15 23:52:32 +03:00
-jar app.jar