diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7ea2557 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM node:16-buster-slim AS base +WORKDIR /app +FROM base AS builder +COPY . . +RUN apt-get update && \ + apt-get install -y chromium traceroute && \ + rm -rf /var/lib/apt/lists/* +RUN npm install --force +EXPOSE 8888 +CMD ["npm", "start"] diff --git a/package.json b/package.json index 2d36584..c34a499 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ }, "scripts": { "dev": "netlify dev", - "start": "react-scripts start", + "start": "netlify serve --offline", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject"