Skip to content

Commit

Permalink
Merge pull request #67 from zzthian/master
Browse files Browse the repository at this point in the history
Fix remaining DockerFiles. Forgot to include in previous commit
  • Loading branch information
PeanutButters93 authored Nov 5, 2023
2 parents 8c323e0 + a9e2986 commit 0a21a1e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion backend/collab-backend/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
# ENV FRONTEND_HOST=https://peerprep.jonoans.com
ENV FRONTEND_HOST=https://peerprep.jonoans.com
EXPOSE 9000
CMD [ "node", "index.js" ]
2 changes: 1 addition & 1 deletion backend/communication-backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
# ENV FRONTEND_HOST=https://peerprep.jonoans.com

EXPOSE 9001
CMD [ "node", "index.js" ]
2 changes: 1 addition & 1 deletion backend/question-backend/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ WORKDIR /src/app
COPY package*.json ./
RUN npm install
COPY . .
# ENV USER_HOST=http://peerprep-g53-fe-2022344057.ap-southeast-1.elb.amazonaws.com/api/users
ENV USER_HOST=http://peerprep-g53-fe-2022344057.ap-southeast-1.elb.amazonaws.com/api/users
EXPOSE 8000
CMD ["node", "index.js"]
7 changes: 0 additions & 7 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@ COPY package*.json ./
RUN npm install
COPY . .

# ENV REACT_APP_USER_HOST=https://peerprep.jonoans.com/api/users
# ENV REACT_APP_QUESTION_HOST=https://peerprep.jonoans.com/api/questions
# ENV REACT_APP_MATCHING_HOST=https://peerprep.jonoans.com:8443
# ENV REACT_APP_COLLAB_HOST=https://peerprep.jonoans.com
# ENV REACT_APP_COMMUNICATION_HOST=https://peerprep.jonoans.com:2096
# ENV REACT_APP_CATEGORIES_HOST=https://peerprep.jonoans.com/api/categories

RUN npm run build
RUN npm i -g serve
EXPOSE 3000
Expand Down

0 comments on commit 0a21a1e

Please sign in to comment.