3d / Dockerfile
hologramicon's picture
Update Dockerfile
73af799 verified
raw
history blame contribute delete
357 Bytes
FROM node:20-alpine
WORKDIR /app
COPY package.json ./
COPY client/package.json ./client/
COPY server/package.json ./server/
COPY server/tsconfig.json ./server/
COPY . .
RUN cd client && npm install
RUN cd server && npm install
RUN cd client && npm run build
RUN cd server && npm run build
ENV PORT=7860
EXPOSE 7860
CMD ["node","server/dist/index.js"]