diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..cae24131 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM node:14 + +# Copy the current directory contents into the container working directory +COPY . /rc4community/ + +# Set the working directory +WORKDIR /rc4community + +# install dependencies for client +RUN yarn + +# Make port 8090 available to the world outside this container +EXPOSE 8090 + +# Run the app when the container launches +CMD ["yarn", "prod"] \ No newline at end of file diff --git a/next.config.js b/next.config.js deleted file mode 100644 index ce5c9799..00000000 --- a/next.config.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = { - images: { - domains: ['img.icons8.com'] - } -} \ No newline at end of file diff --git a/package.json b/package.json index 25f41f59..c5bccfc0 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "scripts": { "dev": "next dev", "build": "next build", - "start": "next start" + "start": "next start", + "prod": "next build && next start -p 8090" }, "dependencies": { "@material-ui/core": "^4.11.4",