fix commit build

This commit is contained in:
ari committed 2022-07-18 10:34:19 -04:00
1 parent 4af6b1688a
commit ad4c1f66f2
6 files changed
+89 -171

No files matched your search

+1 -16
View File
@@ -1,21 +1,6 @@
# <--- Pre-Build Args -->
ARG BUILD_ARCH
# <--- Web builder -->
FROM node:16 AS web-builder
# <--- Post-Build Args -->
ARG BUILD_VERSION
RUN npm i -g yarn
WORKDIR /web-builder
COPY webapp/ /web-builder
# Build web
RUN echo "REACT_APP_BUILD_VERSION=${BUILD_VERSION}" > /web-builder/.env.production
RUN yarn && yarn build
# <--- Main Image -->
FROM python:3.9.13-slim-buster
WORKDIR /app
@@ -45,7 +30,7 @@ RUN /app/bin/build.sh /app
# <--- Api Code -->
COPY api/src /app/src
COPY --from=web-builder /web-builder/build /app/web
COPY /webapp/build /app/web
# <--- Ports -->
EXPOSE 8000