build backend in CI
use this build package in docker-compose;
(cherry picked from commit 1d1dd227fa)
This commit is contained in:
+18
-14
@@ -2,20 +2,24 @@ FROM python:3.8-slim
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
ENV PATH="/opt/venv/bin:$PATH"
|
||||
|
||||
RUN apt-get update; \
|
||||
apt-get install -y build-essential gcc; \
|
||||
python -m venv /opt/venv; \
|
||||
python -m pip install --upgrade pip; \
|
||||
mkdir /code;
|
||||
|
||||
WORKDIR /code
|
||||
|
||||
COPY setup.py /code/
|
||||
COPY requirements.txt /code/
|
||||
|
||||
RUN pip install -r requirements.txt
|
||||
# will be build in a different stage in CI
|
||||
#RUN apt-get update; \
|
||||
# apt-get install -y build-essential gcc; \
|
||||
# python -m venv /opt/venv; \
|
||||
# python -m pip install --upgrade pip; \
|
||||
# mkdir /code;
|
||||
#
|
||||
#WORKDIR /code
|
||||
#
|
||||
#COPY setup.py /code/
|
||||
#COPY requirements.txt /code/
|
||||
#
|
||||
#RUN pip install -r requirements.txt
|
||||
|
||||
# install and use built artifact
|
||||
COPY . /code/
|
||||
WORKDIR /code
|
||||
RUN pip install ./dist/waecm*
|
||||
|
||||
RUN chmod 777 scripts/entrypoint.sh
|
||||
ENTRYPOINT ["scripts/entrypoint.sh"]
|
||||
RUN chmod 777 ./scripts/entrypoint.sh
|
||||
ENTRYPOINT ["./scripts/entrypoint.sh"]
|
||||
|
||||
Reference in New Issue
Block a user