Skip to content

Commit

Permalink
MOD:修复镜像程序
Browse files Browse the repository at this point in the history
  • Loading branch information
ShilongLee committed Jul 14, 2024
1 parent ebe3cbe commit 505dba3
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
FROM python:3-alpine
FROM python:3-slim

WORKDIR /app

COPY requirements.txt .

RUN apk add --update nodejs npm cmake\
RUN apt-get update && apt-get install -y \
gcc \
g++ \
make \
cmake \
pkg-config \
libffi-dev \
&& pip3 install --no-cache-dir -r requirements.txt \
&& rm -rf /var/cache/apk/*
&& apt-get clean \
&& rm -rf /var/cache/apk/* \
&& rm -rf /var/lib/apt/lists/*

COPY . .

ENV FILE = config/docker-config.yaml
ENV FILE=config/docker-config.yaml

EXPOSE 8080

CMD uvicorn --host 0.0.0.0 --port $(port) main:app
CMD uvicorn --host 0.0.0.0 --port $(port) main:app

0 comments on commit 505dba3

Please sign in to comment.