edit: small changes
This commit is contained in:
2
.github/workflows/docker-image.yml
vendored
2
.github/workflows/docker-image.yml
vendored
@@ -11,7 +11,7 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push-image:
|
build-and-push-image:
|
||||||
runs-on: ubuntu-latest
|
runs-on: self-hosted
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ RUN yarn build
|
|||||||
|
|
||||||
|
|
||||||
#Building main conteiner
|
#Building main conteiner
|
||||||
FROM debian:bookworm-slim as base
|
FROM debian:stable-slim as base
|
||||||
RUN apt-get update -qq && apt-get upgrade -qq
|
RUN apt-get update -qq && apt-get upgrade -qq
|
||||||
RUN apt-get install -qq python3-pip build-essential
|
RUN apt-get install -qq python3-pip build-essential
|
||||||
RUN apt-get install -qq git libpcre2-dev libnetfilter-queue-dev
|
RUN apt-get install -qq git libpcre2-dev libnetfilter-queue-dev
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ from utils.sqlite import SQLite
|
|||||||
from utils import API_VERSION, FIREGEX_PORT, JWT_ALGORITHM, get_interfaces, socketio_emit, DEBUG, SysctlManager
|
from utils import API_VERSION, FIREGEX_PORT, JWT_ALGORITHM, get_interfaces, socketio_emit, DEBUG, SysctlManager
|
||||||
from utils.loader import frontend_deploy, load_routers
|
from utils.loader import frontend_deploy, load_routers
|
||||||
from utils.models import ChangePasswordModel, IpInterface, PasswordChangeForm, PasswordForm, ResetRequest, StatusModel, StatusMessageModel
|
from utils.models import ChangePasswordModel, IpInterface, PasswordChangeForm, PasswordForm, ResetRequest, StatusModel, StatusMessageModel
|
||||||
from fastapi.middleware.cors import CORSMiddleware
|
|
||||||
|
|
||||||
# DB init
|
# DB init
|
||||||
db = SQLite('db/firegex.db')
|
db = SQLite('db/firegex.db')
|
||||||
|
|||||||
Reference in New Issue
Block a user