update dockerfiles and compose prod
This commit is contained in:
1 parent
b7cb8e026e
commit
86ec2ab34c
7 files changed
+141
-62
No files matched your search
Executable
+17
@@ -0,0 +1,17 @@
|
||||
FROM node:14 AS builder
|
||||
ARG outbo_env
|
||||
ARG backend_url
|
||||
WORKDIR /app
|
||||
COPY package.json yarn.lock /app/
|
||||
RUN yarn
|
||||
COPY . /app
|
||||
ENV NODE_ENV production
|
||||
ENV REACT_APP_OUTBO_ENV=${outbo_env}
|
||||
ENV REACT_APP_BACKEND_URL=${backend_url}
|
||||
RUN yarn run build
|
||||
|
||||
FROM node:14
|
||||
RUN yarn global add serve
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/build .
|
||||
CMD ["serve", "-p", "80", "-s", "."]
|
||||
Reference in new issue
Block a user