Skip to content

Instantly share code, notes, and snippets.

@joedayz
Created May 19, 2019 09:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joedayz/754ac5b4d71712e3624172be6c8cf34d to your computer and use it in GitHub Desktop.
Save joedayz/754ac5b4d71712e3624172be6c8cf34d to your computer and use it in GitHub Desktop.
Dockerfile para backend spring boot
#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