Refactored to better split everything up
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -6,7 +6,7 @@ ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# Install system dependencies
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends libc-bin apt-transport-https && \
|
||||
apt-get install -y --no-install-recommends libc-bin apt-transport-https tzdata && \
|
||||
apt-get install -y --no-install-recommends git \
|
||||
curl \
|
||||
python3 \
|
||||
@@ -60,11 +60,11 @@ VOLUME ["/configs"]
|
||||
# Set the working directory in the container
|
||||
WORKDIR /app
|
||||
|
||||
# Copy opus first to break up the build time
|
||||
COPY ./app/opus /app/opus
|
||||
|
||||
# Copy the rest of the directory contents into the container at /app
|
||||
COPY ./app /app
|
||||
|
||||
# Copy the pre-built opus libraries
|
||||
COPY ./opus /app/opus
|
||||
|
||||
# Run the node script
|
||||
ENTRYPOINT ["uvicorn", "bot:app", "--host", "0.0.0.0", "--port", "8001", "--reload"]
|
||||
ENTRYPOINT ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8001", "--reload"]
|
||||
Reference in New Issue
Block a user