diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..611b165 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM node:lts + +WORKDIR /usr/src/app + +# Copying package.json and pnpm-lock helps with caching +COPY package.json pnpm-lock.yaml ./ + +RUN npm i -g pnpm + +RUN pnpm install + +COPY . . + +RUN pnpm run build + +EXPOSE 3000 + +CMD ["pnpm", "start"] \ No newline at end of file diff --git a/README.md b/README.md index 3e33f4d..d59715d 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,10 @@ Finally, run `pnpm start` to actually serve Alu! It defaults to port 3000 for ev Congrats, you've now deployed your very own web proxy! +## What about Docker? + +Alu can be easily dockerized with the `Dockerfile` provided in the repository. Simply run `docker build -t alu .` to build the image, and then `docker run -p 3000:3000 alu` to run the container, and you're good to go! + # Technologies - Ultraviolet by Titanium Network