Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ---- Base Node ----
FROM chekote/node as base
FROM chekote/node:12.14.1 as base
# set working directory
WORKDIR /data
# copy project file
Expand All @@ -19,6 +19,11 @@ FROM base AS release
COPY --from=dependencies /data/node_modules ./node_modules
# copy app sources
COPY . .
RUN REACT_APP_DOG_API_ENV="qa" REACT_APP_DOG_API_HOST='https://dog-qa.relaydev.sh' yarn build
RUN REACT_APP_DOG_API_ENV="qa" REACT_APP_DOG_API_HOST='http://192.168.178.42' yarn build

CMD ["/bin/bash"]
#CMD ["/bin/sh"]

FROM nginx AS deploy
COPY nginx.default.conf /etc/nginx/conf.d/default.conf
COPY --from=release /data/build /usr/share/nginx/html
EXPOSE 3030