This commit is contained in:
parent
93d536bdba
commit
47ecf4bd1a
|
@ -3,13 +3,10 @@ WORKDIR /app
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
|
||||||
RUN apk update && apk add --no-cache git gcc curl postgresql-client
|
RUN apk update && apk add --no-cache git gcc curl postgresql-client
|
||||||
|
RUN curl -sSL https://install.python-poetry.org | python
|
||||||
|
ENV PATH="${PATH}:/root/.local/bin"
|
||||||
|
RUN poetry config virtualenvs.create false && poetry install --no-dev
|
||||||
|
|
||||||
RUN curl -sSL https://install.python-poetry.org | python - && \
|
|
||||||
poetry config virtualenvs.create false && \
|
|
||||||
poetry install --no-dev
|
|
||||||
|
|
||||||
# Expose port 8000
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
# Run server when the container launches
|
|
||||||
CMD ["python", "server.py"]
|
CMD ["python", "server.py"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user