Current playground activity
This commit is contained in:
parent
102a140706
commit
b6a5c428b5
20 changed files with 17125 additions and 0 deletions
24
frontend/Dockerfile
Normal file
24
frontend/Dockerfile
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Pull latest official node image
|
||||
FROM node:latest
|
||||
|
||||
# Expose ports
|
||||
EXPOSE 3000
|
||||
EXPOSE 35729
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Add /app/node_modules/.bin to environment variables
|
||||
ENV PATH /app/node_modules/.bin:$PATH
|
||||
|
||||
# Copy package files and install app dependencies
|
||||
COPY package.json /app/package.json
|
||||
COPY package-lock.json /app/package-lock.json
|
||||
RUN npm install
|
||||
RUN npm install react-scripts
|
||||
|
||||
# Add React app to working directory
|
||||
ADD . /app
|
||||
|
||||
# Start the React app
|
||||
CMD ["npm", "start"]
|
Loading…
Add table
Add a link
Reference in a new issue