forked from selkies-project/selkies
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (21 loc) · 811 Bytes
/
Dockerfile
File metadata and controls
29 lines (21 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
FROM python:3
LABEL maintainer="https://github.com/danisla,https://github.com/ehfd"
# Install build deps
ARG PIP_BREAK_SYSTEM_PACKAGES=1
RUN python3 -m pip install --no-cache-dir --force-reinstall --upgrade build
# Build a python package for the webrtc app.
WORKDIR /opt/pypi
# Copy source files
COPY src ./src
COPY README.md pyproject.toml ./
ARG PYPI_PACKAGE=selkies
ARG PACKAGE_VERSION=0.0.0.dev0
# Patch the package name and version
RUN sed -i \
-e "s|^name =.*|name = \"${PYPI_PACKAGE}\"|g" \
-e "s|^version =.*|version = \"${PACKAGE_VERSION}\"|g" \
pyproject.toml
RUN python3 -m build