prod
This commit is contained in:
parent
da59627f97
commit
bd96ed7955
3 changed files with 5 additions and 7 deletions
|
@ -20,13 +20,11 @@ RUN mvn clean install -DskipTests
|
||||||
FROM openjdk:11-jre-stretch
|
FROM openjdk:11-jre-stretch
|
||||||
|
|
||||||
ARG SEBSERVER_VERSION
|
ARG SEBSERVER_VERSION
|
||||||
|
ENV SEBSERVER_VERSION=${SEBSERVER_VERSION}
|
||||||
|
|
||||||
WORKDIR /sebserver
|
WORKDIR /sebserver
|
||||||
COPY --from=1 /sebserver/target/seb-server-"$SEBSERVER_VERSION".jar /sebserver
|
COPY --from=1 /sebserver/target/seb-server-"$SEBSERVER_VERSION".jar /sebserver
|
||||||
|
|
||||||
ARG SEBSERVER_VERSION
|
ENTRYPOINT exec java -jar seb-server-"${SEBSERVER_VERSION}".jar --spring.config.location=classpath:/config/,file:/config
|
||||||
ENV SEBSERVER_VERSION=${SEBSERVER_VERSION}
|
|
||||||
|
|
||||||
ENTRYPOINT exec java -jar seb-server-"${SEBSERVER_VERSION}".jar --spring.config.location=classpath:/config/,file:.
|
EXPOSE 80
|
||||||
|
|
||||||
EXPOSE $PORT
|
|
|
@ -34,7 +34,7 @@ services:
|
||||||
- SEBSERVER_VERSION=0.4.1-beta-SNAPSHOT
|
- SEBSERVER_VERSION=0.4.1-beta-SNAPSHOT
|
||||||
container_name: seb-server
|
container_name: seb-server
|
||||||
volumes:
|
volumes:
|
||||||
- .:/sebserver
|
- .:/config
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
networks:
|
networks:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
spring.application.name=SEB Server
|
spring.application.name=SEB Server
|
||||||
spring.profiles.active=prod
|
spring.profiles.active=dev
|
||||||
|
|
||||||
spring.mandatory-file-encoding=UTF-8
|
spring.mandatory-file-encoding=UTF-8
|
||||||
spring.http.encoding.charset=UTF-8
|
spring.http.encoding.charset=UTF-8
|
||||||
|
|
Loading…
Reference in a new issue