mirror of
https://github.com/hexolan/panels.git
synced 2026-03-26 12:40:21 +00:00
init comment-service
This commit is contained in:
17
services/comment-service/Dockerfile
Normal file
17
services/comment-service/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM python:3.9-alpine
|
||||
|
||||
RUN python -m pip install poetry==1.6.1
|
||||
RUN poetry config virtualenvs.in-project true
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install the dependencies
|
||||
COPY pyproject.toml poetry.lock /app/
|
||||
RUN poetry install --no-cache --no-root
|
||||
|
||||
# Install the package
|
||||
COPY . .
|
||||
RUN poetry install --no-cache --only-root
|
||||
|
||||
EXPOSE 9090
|
||||
CMD ["poetry", "run", "python", "-m", "comment_service.main"]
|
||||
Reference in New Issue
Block a user