Add Dockerfile and update readme to reflect it.
This commit is contained in:
parent
aac5e5feb7
commit
9e0360cb2b
2 changed files with 22 additions and 0 deletions
18
Dockerfile
Normal file
18
Dockerfile
Normal file
|
|
@ -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"]
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue