This commit is contained in:
anhefti 2019-08-27 09:50:09 +02:00
parent da59627f97
commit bd96ed7955
3 changed files with 5 additions and 7 deletions

View file

@ -20,13 +20,11 @@ RUN mvn clean install -DskipTests
FROM openjdk:11-jre-stretch
ARG SEBSERVER_VERSION
ENV SEBSERVER_VERSION=${SEBSERVER_VERSION}
WORKDIR /sebserver
COPY --from=1 /sebserver/target/seb-server-"$SEBSERVER_VERSION".jar /sebserver
ARG SEBSERVER_VERSION
ENV SEBSERVER_VERSION=${SEBSERVER_VERSION}
ENTRYPOINT exec java -jar seb-server-"${SEBSERVER_VERSION}".jar --spring.config.location=classpath:/config/,file:/config
ENTRYPOINT exec java -jar seb-server-"${SEBSERVER_VERSION}".jar --spring.config.location=classpath:/config/,file:.
EXPOSE $PORT
EXPOSE 80

View file

@ -34,7 +34,7 @@ services:
- SEBSERVER_VERSION=0.4.1-beta-SNAPSHOT
container_name: seb-server
volumes:
- .:/sebserver
- .:/config
ports:
- 80:80
networks:

View file

@ -1,5 +1,5 @@
spring.application.name=SEB Server
spring.profiles.active=prod
spring.profiles.active=dev
spring.mandatory-file-encoding=UTF-8
spring.http.encoding.charset=UTF-8