Delete the apt-get lists after installing, Dockerfile

This commit is contained in:
allinoneallinone00
2024-04-23 19:54:06 +00:00
parent 6188486337
commit 82fe7471c5
3 changed files with 52 additions and 1 deletions

1
.idx/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
gc/

48
.idx/dev.nix Normal file
View File

@@ -0,0 +1,48 @@
{ pkgs, ... }: {
# Which nixpkgs channel to use.
channel = "stable-23.11"; # or "unstable"
# Use https://search.nixos.org/packages to find packages
packages = [
pkgs.docker
pkgs.python3
];
# Sets environment variables in the workspace
env = {
SOME_ENV_VAR = "hello";
};
# Search for the extensions you want on https://open-vsx.org/ and use "publisher.id"
idx.extensions = [
"ms-azuretools.vscode-docker"
"ms-python.debugpy"
"ms-python.pylint"
"ms-python.python"
];
services.docker.enable = true;
# Enable previews and customize configuration
idx.previews = {
enable = false;
previews = [
{
command = [
"npm"
"run"
"start"
"--"
"--port"
"$PORT"
"--host"
"0.0.0.0"
"--disable-host-check"
];
manager = "web";
id = "web";
}
];
};
}

View File

@@ -1,6 +1,8 @@
FROM python:3.11
WORKDIR /app
COPY . /app
RUN apt-get -qq update && apt-get -qq install -y git wget ffmpeg mediainfo
RUN apt-get -qq update && apt-get -qq install -y git wget ffmpeg mediainfo \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN pip install -r requirements.txt
CMD ["python", "main.py"]