|
@@ -6,16 +6,15 @@ ENV POETRY_VIRTUALENVS_CREATE=false \
|
|
|
PYTHONUNBUFFERED=1 \
|
|
PYTHONUNBUFFERED=1 \
|
|
|
PYTHONDONTWRITEBYTECODE=1
|
|
PYTHONDONTWRITEBYTECODE=1
|
|
|
|
|
|
|
|
-RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple \
|
|
|
|
|
- && pip install --no-cache-dir poetry
|
|
|
|
|
|
|
+RUN python -m pip install --upgrade pip \
|
|
|
|
|
+ && pip install --no-cache-dir -i https://pypi.org/simple poetry
|
|
|
|
|
|
|
|
COPY pyproject.toml poetry.lock ./
|
|
COPY pyproject.toml poetry.lock ./
|
|
|
|
|
|
|
|
-RUN poetry source add --priority=primary tsinghua https://pypi.tuna.tsinghua.edu.cn/simple || true \
|
|
|
|
|
- && poetry install --no-root --no-interaction --no-ansi
|
|
|
|
|
|
|
+RUN poetry install --no-root --no-interaction --no-ansi
|
|
|
|
|
|
|
|
COPY . .
|
|
COPY . .
|
|
|
|
|
|
|
|
EXPOSE 33333
|
|
EXPOSE 33333
|
|
|
|
|
|
|
|
-CMD ["uvicorn", "alien_gateway.main:app", "--host", "0.0.0.0", "--port", "33333"]
|
|
|
|
|
|
|
+CMD ["uvicorn", "alien_store.main:app", "--host", "0.0.0.0", "--port", "33333"]
|