Spaces:
Build error
Build error
File size: 1,180 Bytes
5eaa401 535e1e4 24c5e53 aa72afd 535e1e4 32684b6 535e1e4 32684b6 535e1e4 60d0969 32684b6 60d0969 32684b6 535e1e4 7aa2a5e 535e1e4 bb18667 |
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 |
FROM node:lts-bullseye
# Default working dir
WORKDIR /opt/node_app
# Get apt up and running
RUN apt update
RUN apt install git yarn -y
# 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
# Install and add options / app
#RUN yarn add react react-dom @excalidraw/excalidraw
# Run yarn to install deps
RUN yarn
#COPY index.js src/App.js
# Replace the content of src/App.js
#RUN echo "import React from 'react';" > src/App.js \
#&& echo "import Excalidraw from '@excalidraw/excalidraw';" >> src/App.js \
#&& echo "import './App.css';" >> src/App.js \
#&& echo "function App() {" >> src/App.js \
#&& echo " return (" >> src/App.js \
#&& echo " <div className='App'>" >> src/App.js \
#&& echo " <Excalidraw />" >> src/App.js \
#&& echo " </div>" >> src/App.js \
#&& echo " );" >> src/App.js \
#&& echo "}" >> src/App.js \
#&& echo "export default App;" >> src/App.js
# Make port 3000 available outside the container
EXPOSE 3000
# Start the development server
CMD ["yarn", "start"]
|