Zlatislav Zlatev commited on
Commit ·
9fa83b1
1
Parent(s): 2418188
Update Dockerfile
Browse files- Dockerfile +15 -21
Dockerfile
CHANGED
|
@@ -1,30 +1,24 @@
|
|
| 1 |
-
# Dockerfile for a
|
| 2 |
|
| 3 |
-
#
|
| 4 |
FROM debian:latest
|
| 5 |
|
| 6 |
-
# Maintainer
|
| 7 |
-
LABEL maintainer="Zlatislav <zlatislavzlatev@icloud.com>"
|
| 8 |
-
|
| 9 |
-
# Set environment variables
|
| 10 |
-
ENV DEBIAN_FRONTEND noninteractive
|
| 11 |
-
ENV DEBCONF_NONINTERACTIVE_SEEN true
|
| 12 |
-
|
| 13 |
-
# Install packages
|
| 14 |
-
RUN apt-get update && apt-get install -y \
|
| 15 |
-
apt-utils \
|
| 16 |
-
curl \
|
| 17 |
-
wget \
|
| 18 |
-
nano
|
| 19 |
-
|
| 20 |
# Set the working directory
|
| 21 |
WORKDIR /app
|
| 22 |
|
| 23 |
-
# Copy the
|
| 24 |
-
COPY .
|
| 25 |
|
| 26 |
-
# Expose port
|
| 27 |
EXPOSE 7860
|
| 28 |
|
| 29 |
-
#
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Dockerfile for running a debian container on port 7860
|
| 2 |
|
| 3 |
+
# Use an official Debian as a parent image
|
| 4 |
FROM debian:latest
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
# Set the working directory
|
| 7 |
WORKDIR /app
|
| 8 |
|
| 9 |
+
# Copy the current directory contents into the container at /app
|
| 10 |
+
COPY . /app
|
| 11 |
|
| 12 |
+
# Expose port 7860
|
| 13 |
EXPOSE 7860
|
| 14 |
|
| 15 |
+
# Set environment variables
|
| 16 |
+
ENV PORT 7860
|
| 17 |
+
ENV HOST 0.0.0.0
|
| 18 |
+
|
| 19 |
+
# Run the command inside the container
|
| 20 |
+
CMD ["/bin/bash", "-c", "python -m http.server $PORT --bind $HOST"]
|
| 21 |
+
|
| 22 |
+
# Add labels
|
| 23 |
+
LABEL maintainer="Zlatislav"
|
| 24 |
+
LABEL version="1.0"
|