Delete the apt-get lists after installing, Dockerfile
This commit is contained in:
1
.idx/.gitignore
vendored
Normal file
1
.idx/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
gc/
|
||||
48
.idx/dev.nix
Normal file
48
.idx/dev.nix
Normal 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";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user