diff options
Diffstat (limited to 'spring-front/Dockerfile')
-rw-r--r-- | spring-front/Dockerfile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spring-front/Dockerfile b/spring-front/Dockerfile index 9993468..9bb7ca7 100644 --- a/spring-front/Dockerfile +++ b/spring-front/Dockerfile @@ -1,4 +1,4 @@ -FROM node:lts-alpine3.13 as certbuilder +FROM node:lts-alpine3.15 as certbuilder RUN apk add openssl WORKDIR /certs RUN openssl req -nodes -new -x509 -subj="/C=US/ST=Denial/L=springfield/O=Dis/CN=localhost" -keyout server.key -out server.cert @@ -10,7 +10,9 @@ COPY package.json ./ COPY package-lock.json ./ RUN npm ci RUN npm install react-scripts -g -COPY . ./ +# COPY . ./ +COPY ./public/ ./public/ +COPY ./src/ ./src/ RUN npm run build FROM nginx:stable-alpine |