Spaces:
Runtime error
Runtime error
updated
Browse files- .dockerargs +0 -2
- Dockerfile +12 -16
.dockerargs
DELETED
|
@@ -1,2 +0,0 @@
|
|
| 1 |
-
security-opt=no-new-privileges:false
|
| 2 |
-
--no-cache
|
|
|
|
|
|
|
|
|
Dockerfile
CHANGED
|
@@ -1,18 +1,6 @@
|
|
| 1 |
-
# Use ubuntu as the base image
|
| 2 |
-
# FROM ubuntu
|
| 3 |
FROM ubuntu/mysql
|
| 4 |
|
| 5 |
-
# Install and enable SSH service
|
| 6 |
-
# RUN apt-get update && apt-get install -y openssh-server
|
| 7 |
-
# RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
| 8 |
|
| 9 |
-
# Set a password for the root user
|
| 10 |
-
# RUN echo "root:Changeme" | chpasswd
|
| 11 |
-
|
| 12 |
-
# Create the sshuser account
|
| 13 |
-
# RUN useradd -m -s /bin/bash sshuser
|
| 14 |
-
|
| 15 |
-
# Create and change ownership of the /run/sshd directory
|
| 16 |
USER root
|
| 17 |
# RUN mkdir /run/sshd
|
| 18 |
# RUN chown sshuser:sshuser /run/sshd
|
|
@@ -39,8 +27,16 @@ git \
|
|
| 39 |
apt-get clean && \
|
| 40 |
rm -rf /var/lib/apt/lists/*
|
| 41 |
|
| 42 |
-
|
| 43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
CMD python3 -c "print('Docker is more simple Deployment Tool')"
|
| 45 |
-
|
| 46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
FROM ubuntu/mysql
|
| 2 |
|
|
|
|
|
|
|
|
|
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
USER root
|
| 5 |
# RUN mkdir /run/sshd
|
| 6 |
# RUN chown sshuser:sshuser /run/sshd
|
|
|
|
| 27 |
apt-get clean && \
|
| 28 |
rm -rf /var/lib/apt/lists/*
|
| 29 |
|
| 30 |
+
|
| 31 |
+
COPY . /app
|
| 32 |
+
WORKDIR /app
|
| 33 |
+
RUN pip install -r requirements.txt
|
| 34 |
+
|
| 35 |
+
|
| 36 |
CMD python3 -c "print('Docker is more simple Deployment Tool')"
|
| 37 |
+
CMD mysql -h localhost -u root
|
| 38 |
+
CMD source test.sql
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
# ENTRYPOINT ["flask"]
|
| 42 |
+
# CMD ["run", "--host=0.0.0.0"]
|