Skip to content

Commit

Permalink
Merge pull request #186 from Step3-kakao-tech-campus/feat/#185
Browse files Browse the repository at this point in the history
feat/#185 Dockerfile 생성
  • Loading branch information
JeonDoGyun authored Nov 10, 2023
2 parents 1969bcc + e7aaf3b commit e2f9765
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Build stage
FROM krmp-d2hub-idock.9rum.cc/goorm/node:18 as reactBuilder
WORKDIR /workspace/project
COPY . .
RUN npm ci
RUN npm install -g serve

ENV REACT_APP_URI "https://k4b619f06d4c1a.user-app.krampoline.com/api"
ENV REACT_APP_KAKAO_KEY "415e174a89b3ef7ce97cb74dabe90a4d"

ENV NODE_OPTIONS "--max_old_space_size=4096"

RUN npm run build

EXPOSE 3000
CMD ["serve", "build"]

# Build stage


# Stage 2: Nginx Run
FROM krmp-d2hub-idock.9rum.cc/goorm/nginx:latest as nginxBuilder

WORKDIR /var/nginx/build

COPY --from=reactBuilder /workspace/project/build/ .

EXPOSE 80

CMD ["nginx", "-g", "daemon off;"]



0 comments on commit e2f9765

Please sign in to comment.