three commit
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
MSI\migue 2025-04-14 18:04:19 -04:00
parent adb285d813
commit 45fd413b27
2 changed files with 22 additions and 0 deletions

2
src/main/docker/app.env Normal file
View File

@ -0,0 +1,2 @@
JAVA_OPTS=-Xmx1024m -Xms256m
START_SLEEP=5

View File

@ -0,0 +1,20 @@
FROM amazoncorretto:21.0.2-alpine3.19
ENV SPRING_OUTPUT_ANSI_ENABLED=ALWAYS
RUN adduser --system --shell /bin/sh microservice
WORKDIR /home/microservice
ADD entrypoint.sh entrypoint.sh
COPY /src/main/resources/application.properties /home/microservice/application.properties
RUN chmod 755 entrypoint.sh && chown microservice entrypoint.sh
USER microservice
RUN mkdir data
RUN chmod -R 766 data/
EXPOSE 8080
ADD target/*.jar app.jar
ENTRYPOINT ["./entrypoint.sh"]