mirror of
https://github.com/dyrkin/luxmed-bot.git
synced 2025-12-21 13:23:05 +01:00
smaller result docker image
This commit is contained in:
10
.drone.yml
10
.drone.yml
@@ -8,7 +8,7 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: amd64/eclipse-temurin:11-jdk-focal
|
image: eclipse-temurin:11-jre-focal
|
||||||
environment:
|
environment:
|
||||||
GRADLE_USER_HOME: ~/.gradle
|
GRADLE_USER_HOME: ~/.gradle
|
||||||
command: [ /bin/bash ]
|
command: [ /bin/bash ]
|
||||||
@@ -75,7 +75,7 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: arm64v8/eclipse-temurin:11-jdk-focal
|
image: eclipse-temurin:11-jre-focal
|
||||||
environment:
|
environment:
|
||||||
GRADLE_USER_HOME: ~/.gradle
|
GRADLE_USER_HOME: ~/.gradle
|
||||||
command: [ /bin/bash ]
|
command: [ /bin/bash ]
|
||||||
@@ -84,7 +84,7 @@ steps:
|
|||||||
- echo -n "1.0.$DRONE_BUILD_NUMBER-arm64,latest-arm64" > .tags
|
- echo -n "1.0.$DRONE_BUILD_NUMBER-arm64,latest-arm64" > .tags
|
||||||
- echo -n "1.0.$DRONE_BUILD_NUMBER" > ./docker/version
|
- echo -n "1.0.$DRONE_BUILD_NUMBER" > ./docker/version
|
||||||
|
|
||||||
- name: test Dockerfile.arm64
|
- name: test Dockerfile
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
repo: eugenezadyra/luxmed-bot
|
repo: eugenezadyra/luxmed-bot
|
||||||
@@ -92,7 +92,7 @@ steps:
|
|||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
dockerfile: docker/Dockerfile.arm64
|
dockerfile: docker/Dockerfile
|
||||||
context: docker/
|
context: docker/
|
||||||
dry_run: yes
|
dry_run: yes
|
||||||
when:
|
when:
|
||||||
@@ -107,7 +107,7 @@ steps:
|
|||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
dockerfile: docker/Dockerfile.arm64
|
dockerfile: docker/Dockerfile
|
||||||
context: docker/
|
context: docker/
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM amd64/eclipse-temurin:11-jre-focal
|
FROM eclipse-temurin:11-jre-focal
|
||||||
|
|
||||||
RUN apt-get update -y && apt-get install -y netcat # nc command
|
RUN apt-get update -y && apt-get install -y netcat # nc command
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
FROM arm64v8/eclipse-temurin:11-jre-focal
|
|
||||||
|
|
||||||
RUN apt-get update -y && apt-get install -y netcat # nc command
|
|
||||||
|
|
||||||
RUN ln -fs /usr/share/zoneinfo/Europe/Warsaw /etc/localtime
|
|
||||||
RUN dpkg-reconfigure -f noninteractive tzdata
|
|
||||||
|
|
||||||
RUN mkdir -p /app
|
|
||||||
ADD server.jar /app
|
|
||||||
ADD run.sh run.sh
|
|
||||||
ADD version /app/version
|
|
||||||
RUN chmod +x run.sh
|
|
||||||
CMD ./run.sh
|
|
||||||
Reference in New Issue
Block a user