try to fix frontend image, reorder docker layers

This commit is contained in:
MiniDigger 2021-02-07 22:15:43 +01:00
parent cd4838d509
commit a27375e7cf
3 changed files with 11 additions and 10 deletions

View File

@ -2,11 +2,12 @@ FROM openjdk:16-jdk-alpine
WORKDIR hangar
ADD target/hangar-*.jar /hangar/app.jar
ADD docker/deployment/hangar-backend/application.yml /hangar/application.yml
ENV TERM xterm-256color
EXPOSE 8080
# "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005" is for debug only
ENTRYPOINT ["java", "-XX:+ShowCodeDetailsInExceptionMessages", "-jar", "app.jar"]
ADD docker/deployment/hangar-backend/application.yml /hangar/application.yml
ADD target/hangar-*.jar /hangar/app.jar

View File

@ -1,6 +1,6 @@
spring:
datasource:
url: jdbc:postgresql://hangar_db:5432/hangar
url: jdbc:postgresql://hangar_new_db:5432/hangar
username: hangar
password: hangar
jackson:

View File

@ -1,13 +1,13 @@
FROM node:12-alpine
WORKDIR hangar-frontend
COPY .nuxt /hangar-frontend/
COPY node_modules /hangar-frontend/
COPY package.json /hangar-frontend/
COPY nuxt.config.ts /hangar-frontend/
ENV TERM xterm-256color
EXPOSE 3000
ENTRYPOINT ["nuxt-ts", "start"]
ENTRYPOINT ["yarn", "run", "start"]
COPY package.json /hangar-frontend/
COPY nuxt.config.ts /hangar-frontend/
COPY node_modules /hangar-frontend/
COPY .nuxt /hangar-frontend/