diff options
author | terminaldweller <thabogre@gmail.com> | 2022-03-21 21:58:11 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-03-21 21:58:11 +0000 |
commit | f084c45b544b7c3c47d0638081f05ebce3ea1e42 (patch) | |
tree | d7ffdbcabacbe8c5262e28f047f9b272d0edea5f /spring-front/Dockerfile | |
parent | wip (diff) | |
download | mdrtl-f084c45b544b7c3c47d0638081f05ebce3ea1e42.tar.gz mdrtl-f084c45b544b7c3c47d0638081f05ebce3ea1e42.zip |
wip
Diffstat (limited to 'spring-front/Dockerfile')
-rw-r--r-- | spring-front/Dockerfile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spring-front/Dockerfile b/spring-front/Dockerfile index c4d0b14..9993468 100644 --- a/spring-front/Dockerfile +++ b/spring-front/Dockerfile @@ -1,3 +1,8 @@ +FROM node:lts-alpine3.13 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 + FROM node:16.14.2-alpine as builder WORKDIR /app ENV PATH /app/node_modules/.bin:$PATH @@ -8,11 +13,6 @@ RUN npm install react-scripts -g COPY . ./ RUN npm run build -FROM node:lts-alpine3.13 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 - FROM nginx:stable-alpine COPY --from=builder /app/build /usr/share/nginx/html COPY --from=certbuilder /certs /certs |