Initial commit
This commit is contained in:
30
Dockerfile
Normal file
30
Dockerfile
Normal file
@ -0,0 +1,30 @@
|
||||
ARG BUILD_FROM
|
||||
FROM $BUILD_FROM
|
||||
|
||||
# Set shell
|
||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
|
||||
# Install required packages
|
||||
RUN apk add --no-cache \
|
||||
python3 \
|
||||
py3-pip \
|
||||
py3-wheel \
|
||||
gcc \
|
||||
python3-dev \
|
||||
musl-dev
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy files
|
||||
COPY requirements.txt .
|
||||
COPY . .
|
||||
|
||||
# Install Python requirements
|
||||
RUN pip3 install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Expose the port used for the web interface
|
||||
EXPOSE 8099
|
||||
|
||||
# Start the app
|
||||
CMD ["python3", "main.py"]
|
||||
Reference in New Issue
Block a user