updated dockerfile, organized imports
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
FROM node:16-alpine3.15
|
FROM node:16-alpine3.16
|
||||||
RUN mkdir -p /usr/src/yt-dlp-webui/download
|
RUN mkdir -p /usr/src/yt-dlp-webui/download
|
||||||
VOLUME /usr/src/yt-dlp-webui/downloads
|
VOLUME /usr/src/yt-dlp-webui/downloads
|
||||||
WORKDIR /usr/src/yt-dlp-webui
|
WORKDIR /usr/src/yt-dlp-webui
|
||||||
@@ -9,6 +9,7 @@ RUN apk add curl wget psmisc python3 ffmpeg
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN chmod +x ./fetch-yt-dlp.sh
|
RUN chmod +x ./fetch-yt-dlp.sh
|
||||||
# install node dependencies
|
# install node dependencies
|
||||||
|
RUN npm i -g yarn
|
||||||
RUN yarn
|
RUN yarn
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
RUN yarn build-server
|
RUN yarn build-server
|
||||||
|
|||||||
@@ -1,38 +1,34 @@
|
|||||||
import { useEffect, useMemo, useState } from "react"
|
|
||||||
import { ThemeProvider } from "@emotion/react";
|
import { ThemeProvider } from "@emotion/react";
|
||||||
import {
|
|
||||||
Box,
|
|
||||||
createTheme, CssBaseline,
|
|
||||||
Divider,
|
|
||||||
IconButton, List,
|
|
||||||
ListItemIcon, ListItemText,
|
|
||||||
Toolbar,
|
|
||||||
Typography,
|
|
||||||
styled,
|
|
||||||
} from "@mui/material"
|
|
||||||
import MuiDrawer from '@mui/material/Drawer';
|
|
||||||
import MuiAppBar, { AppBarProps as MuiAppBarProps } from '@mui/material/AppBar';
|
|
||||||
import {
|
import {
|
||||||
ChevronLeft,
|
ChevronLeft,
|
||||||
Dashboard,
|
Dashboard,
|
||||||
// Download,
|
// Download,
|
||||||
Menu, Settings as SettingsIcon,
|
Menu, Settings as SettingsIcon,
|
||||||
SettingsEthernet,
|
SettingsEthernet,
|
||||||
Storage,
|
Storage
|
||||||
} from "@mui/icons-material";
|
} from "@mui/icons-material";
|
||||||
import ListItemButton from '@mui/material/ListItemButton';
|
|
||||||
import {
|
import {
|
||||||
BrowserRouter as Router,
|
Box,
|
||||||
Route,
|
createTheme, CssBaseline,
|
||||||
Routes,
|
Divider,
|
||||||
Link,
|
IconButton, List,
|
||||||
|
ListItemIcon, ListItemText, styled, Toolbar,
|
||||||
|
Typography
|
||||||
|
} from "@mui/material";
|
||||||
|
import MuiAppBar, { AppBarProps as MuiAppBarProps } from '@mui/material/AppBar';
|
||||||
|
import MuiDrawer from '@mui/material/Drawer';
|
||||||
|
import ListItemButton from '@mui/material/ListItemButton';
|
||||||
|
import { useEffect, useMemo, useState } from "react";
|
||||||
|
import { Provider, useSelector } from "react-redux";
|
||||||
|
import {
|
||||||
|
BrowserRouter as Router, Link, Route,
|
||||||
|
Routes
|
||||||
} from 'react-router-dom';
|
} from 'react-router-dom';
|
||||||
|
import { io } from "socket.io-client";
|
||||||
|
import ArchivedDownloads from "./Archived";
|
||||||
import Home from "./Home";
|
import Home from "./Home";
|
||||||
import Settings from "./Settings";
|
import Settings from "./Settings";
|
||||||
import { io } from "socket.io-client";
|
|
||||||
import { RootState, store } from './stores/store';
|
import { RootState, store } from './stores/store';
|
||||||
import { Provider, useSelector } from "react-redux";
|
|
||||||
import ArchivedDownloads from "./Archived";
|
|
||||||
|
|
||||||
const drawerWidth: number = 240;
|
const drawerWidth: number = 240;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user