mirror of
https://github.com/Viren070/stremio-addon-manager.git
synced 2025-12-01 23:25:50 +01:00
Add docker image (#4)
This commit is contained in:
+17
@@ -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;"]
|
||||||
@@ -29,5 +29,15 @@ npm run dev
|
|||||||
npm run build
|
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
|
## Thanks
|
||||||
Big thank you to `Sleeyax` and `<Code/>` for the conversations and code snippets that made this really easy to implement.
|
Big thank you to `Sleeyax` and `<Code/>` for the conversations and code snippets that made this really easy to implement.
|
||||||
|
|||||||
Reference in New Issue
Block a user