This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Use an official Python runtime as a parent image
|
||||
FROM python:3.12-alpine
|
||||
FROM python:alpine
|
||||
|
||||
# Set the working directory in the container to /app
|
||||
WORKDIR /app
|
||||
@@ -12,10 +12,8 @@ COPY . /app
|
||||
|
||||
# Install any needed packages specified in pyproject.toml
|
||||
RUN apk update && apk add --no-cache gcc curl && \
|
||||
curl -sSL https://install.python-poetry.org | python - && \
|
||||
export PATH=$PATH:/root/.local/bin && \
|
||||
poetry config virtualenvs.create false && \
|
||||
poetry install --no-dev
|
||||
|
||||
RUN pip install -r requirements.txt --no-cache
|
||||
|
||||
# Run server.py when the container launches
|
||||
CMD ["python", "server.py"]
|
||||
|
Reference in New Issue
Block a user