Current playground activity

This commit is contained in:
cami 2021-04-20 01:24:25 +02:00
parent 102a140706
commit b6a5c428b5
Signed by: cami
GPG key ID: ECF1680F09730914
20 changed files with 17125 additions and 0 deletions

24
frontend/Dockerfile Normal file
View 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"]