Created
May 19, 2019 09:06
-
-
Save joedayz/754ac5b4d71712e3624172be6c8cf34d to your computer and use it in GitHub Desktop.
Dockerfile para backend spring boot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#De la imagen que partimos | |
FROM openjdk:8-jre-alpine | |
RUN apk add --no-cache tzdata | |
ENV TZ='America/Lima' | |
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | |
RUN apk --update add fontconfig ttf-dejavu | |
#Directorio de trabajo | |
WORKDIR / | |
RUN mkdir app && chmod 777 app | |
COPY target/fps-app-ws-mallapromocional-0.0.1-SNAPSHOT.jar /app | |
WORKDIR /app | |
#Exponemos el puerto 8080 | |
EXPOSE 8080 | |
#Comando que se ejecutará una vez ejecutemos el contendor | |
CMD ["java","-jar","fps-app-ws-mallapromocional-0.0.1-SNAPSHOT.jar"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment