build backend in CI
use this build package in docker-compose; (cherry picked from commit 1d1dd227fae29afe6b3843a24dcbb1aa3c602762)
This commit is contained in:
parent
cc5f4d3e1c
commit
3bd1bfd5e7
@ -2,20 +2,24 @@ FROM python:3.8-slim
|
|||||||
ENV PYTHONUNBUFFERED 1
|
ENV PYTHONUNBUFFERED 1
|
||||||
ENV PATH="/opt/venv/bin:$PATH"
|
ENV PATH="/opt/venv/bin:$PATH"
|
||||||
|
|
||||||
RUN apt-get update; \
|
# will be build in a different stage in CI
|
||||||
apt-get install -y build-essential gcc; \
|
#RUN apt-get update; \
|
||||||
python -m venv /opt/venv; \
|
# apt-get install -y build-essential gcc; \
|
||||||
python -m pip install --upgrade pip; \
|
# python -m venv /opt/venv; \
|
||||||
mkdir /code;
|
# python -m pip install --upgrade pip; \
|
||||||
|
# mkdir /code;
|
||||||
WORKDIR /code
|
#
|
||||||
|
#WORKDIR /code
|
||||||
COPY setup.py /code/
|
#
|
||||||
COPY requirements.txt /code/
|
#COPY setup.py /code/
|
||||||
|
#COPY requirements.txt /code/
|
||||||
RUN pip install -r requirements.txt
|
#
|
||||||
|
#RUN pip install -r requirements.txt
|
||||||
|
|
||||||
|
# install and use built artifact
|
||||||
COPY . /code/
|
COPY . /code/
|
||||||
|
WORKDIR /code
|
||||||
|
RUN pip install ./dist/waecm*
|
||||||
|
|
||||||
RUN chmod 777 scripts/entrypoint.sh
|
RUN chmod 777 ./scripts/entrypoint.sh
|
||||||
ENTRYPOINT ["scripts/entrypoint.sh"]
|
ENTRYPOINT ["./scripts/entrypoint.sh"]
|
||||||
|
|||||||
@ -5,7 +5,7 @@ from setuptools import find_packages, setup
|
|||||||
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
|
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
|
||||||
|
|
||||||
setup(name='waecm-2021-group-04',
|
setup(name='waecm-2021-group-04',
|
||||||
version='0.0.0',
|
version='3',
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
install_requires=[
|
install_requires=[
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user