Skip to content

Commit

Permalink
docker: fix docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
cruizba committed Aug 13, 2024
1 parent bd89e67 commit 1c86afb
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ ARG BASE_HREF=/

COPY . .

# Build OpenVidu Call frontend
# Install openvidu-call-back dependencies
RUN cd openvidu-call-back && npm install \
npm run build

# Build openvidu-call-back frontend
RUN cd openvidu-call-front && npm install && \
npm run prod:build ${BASE_HREF} && \
cd ../ && rm -rf openvidu-call-front
Expand All @@ -18,12 +22,6 @@ WORKDIR /opt/openvidu-call

COPY --from=openvidu-call-build /openvidu-call/openvidu-call-back .

RUN npm install -g npm

# Install backend dependencies and build it for production
RUN npm install && \
npm run build

# Entrypoint
COPY docker/entrypoint.sh /usr/local/bin/entrypoint.sh
RUN apk add --no-cache curl && \
Expand Down

0 comments on commit 1c86afb

Please sign in to comment.