17 lines
447 B
Docker
17 lines
447 B
Docker
FROM nikolaik/python-nodejs:latest
|
|
|
|
ENV WORKING_DIR=/app
|
|
|
|
# Set the working directory to /app
|
|
WORKDIR ${WORKING_DIR}
|
|
|
|
# Copy the project to the container
|
|
COPY . ${WORKING_DIR}
|
|
# COPY .env ${WORKING_DIR}
|
|
COPY pyproject.toml .
|
|
|
|
RUN poetry export --without-hashes -f requirements.txt -o requirements.txt
|
|
RUN pip install -r requirements.txt
|
|
RUN cd front && npm install && npm run build
|
|
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"] |