Spaces:
Build error
Build error
File size: 2,098 Bytes
98eaa7b 5eaa401 535e1e4 c0d5d11 38d6080 46a59bb c0d5d11 148e8ba 535e1e4 38d6080 80b136c 535e1e4 98eaa7b 535e1e4 98eaa7b 535e1e4 fc9e695 98eaa7b fc9e695 46a59bb 4bd6e4f 98eaa7b 60d0969 32684b6 98eaa7b 815ea35 98eaa7b 32684b6 98eaa7b fe85de0 c7b130c 535e1e4 f437c9b 3956b30 f437c9b 6a32a1e 9b8d401 d711d43 6fa7eef 83927d6 f437c9b c7b130c 235f4a0 f437c9b 4db3cec 535e1e4 c7b130c fc43240 c7b130c fc43240 535e1e4 815ea35 c7b130c 535e1e4 d5f7422 f437c9b c7b130c 9bd5591 cd4823c 27a98c3 cd4823c d22beb3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
FROM node:18
# Default working dir
WORKDIR /opt/node_app
# Get apt up and running
#RUN apt update
#RUN apt install python3-pip python3-uvicorn python3-fastapi -y
#RUN apt install git yarn -y
#RUN npm install --global yarn
#RUN apt install nginx -y
#RUN npm install react react-dom @excalidraw/excalidraw vscode-languageclient -g
# Create a React
#RUN npx create-react-app my-excalidraw-app
RUN git clone https://github.com/excalidraw/excalidraw
# Change to the newly created directory
#WORKDIR /opt/node_app/my-excalidraw-app
WORKDIR /opt/node_app/excalidraw
# Set ENV on dev / prod
#RUN echo -e "\n\nBROWSER=NONE" >> .env.development
#RUN echo -e "\n\nBROWSER=NONE" >> .env.development
# Setup npm / yarn / deps
#RUN npm install react react-dom
#RUN npm install workbox-build workbox-window eslint
#RUN yarn add react react-dom @excalidraw/excalidraw workbox-build workbox-window eslint
# Run yarn to install deps
#RUN yarn
RUN yarn --ignore-optional --network-timeout 600000 && \
chmod 777 -R /opt/node_app/
# Set prod build
ARG NODE_ENV=production
# Build prod
#RUN yarn build:app:docker && \
# cp -R build/* /var/www/html
#WORKDIR /opt/node_app/excalidraw/build
#COPY . /var/www/html/
#COPY /opt/node_app/excalidraw/build /var/www/html
#COPY /opt/node_app/excalidraw/build /var/www/html
#RUN mkdir -p /opt/node_app/excalidraw/build
#RUN echo "index.html" > /opt/node_app/excalidraw/build/index.html
#WORKDIR /opt/node_app/
#WORKDIR /var/www/html/
# Copy fastapi app
#COPY app.py .
#COPY nginx.conf /etc/nginx/sites-available/default
#RUN ls -a /var/www/html/
#RUN cat /var/www/html/index.html
# Make port 3000 available outside the container
EXPOSE 5001
# Start the development server
#CMD ["python3", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "3000"]
#CMD ["python3", "app.py"]
#CMD ["nginx", "-g", "daemon off;"]
#CMD ["python3", "-m", "http.server", "3000"]
COPY start.sh .
RUN chmod +x start.sh
RUN yarn build
CMD ["/bin/bash", "start.sh"]
#HEALTHCHECK CMD wget -q -O /dev/null http://localhost:5001 || exit 1
#CMD ["yarn", "start:production"] |