Add docker image (#4)

This commit is contained in:
Sleeyax
2024-02-07 10:50:04 +01:00
committed by GitHub
parent 9e65c9f3f9
commit 1cb011c54c
2 changed files with 27 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
FROM node:lts-alpine as builder
WORKDIR /app
COPY package*.json /app
RUN npm install
COPY . .
RUN npm run build
FROM nginx:stable-alpine as production-stage
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
+10
View File
@@ -29,5 +29,15 @@ npm run dev
npm run build
```
## Docker
Run the following commands to build and run the app in a Docker container:
```bash
$ docker build -t stremio-addon-manager .
$ docker run -p 8080:80 stremio-addon-manager
```
The app will be accessible at `http://localhost:8080`.
## Thanks
Big thank you to `Sleeyax` and `<Code/>` for the conversations and code snippets that made this really easy to implement.