Enhanced Docker and Nginx configurations - Can now run frontend either on local dev version OR the docker version; Improved socket connection handling; Refactored stream data fetching in VideoPage to properly display stream data; Chat-Visibility Button moved to ChatPanel so that chat's socket persists when hiding/showing chat;
16 lines
283 B
Docker
16 lines
283 B
Docker
FROM node:18-alpine
|
|
|
|
WORKDIR /frontend
|
|
|
|
ENV VITE_API_URL=${VITE_API_URL}
|
|
ENV VITE_STRIPE_PUBLISHABLE_KEY=${VITE_STRIPE_PUBLISHABLE_KEY}
|
|
|
|
COPY package*.json ./
|
|
|
|
RUN npm install --legacy-peer-deps
|
|
|
|
COPY . .
|
|
|
|
EXPOSE 5173
|
|
|
|
CMD ["npm", "run", "docker-dev", "--", "--host", "--strictPort"] |