1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/mirrors-firefox-profilemaker

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
Dockerfile 752 Байты
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Rhevin Отправлено 25.01.2024 21:21 3187b45
# docker run -it --rm --name profilemaker -v $PWD:/code -w /code python:3.8.5-alpine3.12 /bin/sh
# First stage
FROM python:3.11.7-alpine3.19 AS builder
COPY requirements.txt .
# Install dependencies to the local user directory (eg. /root/.local)
RUN pip install --no-cache-dir --user --no-warn-script-location -r requirements.txt
# Second unnamed stage
FROM python:3.11.7-alpine3.19
RUN apk add --no-cache make bash
WORKDIR /code
# Copy only the dependencies installation from the 1st stage image
COPY --from=builder /root/.local /root/.local
# Update PATH environment variable
ENV PATH=/root/.local/bin:$PATH
# Copy sources
COPY . .
RUN make create-project
EXPOSE 8000
# Run server
CMD [ "./project/manage.py", "runserver", "0.0.0.0:8000"]

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/mirrors-firefox-profilemaker.git
git@api.gitlife.ru:oschina-mirror/mirrors-firefox-profilemaker.git
oschina-mirror
mirrors-firefox-profilemaker
mirrors-firefox-profilemaker
master