Kaballas commited on
Commit
ed294ba
·
1 Parent(s): b8dd4b1
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -2,7 +2,8 @@
2
  # you will also find guides on how best to write your Dockerfile
3
 
4
  FROM python:3.9
5
-
 
6
  # Switch to root user to perform administrative tasks
7
  USER root
8
 
 
2
  # you will also find guides on how best to write your Dockerfile
3
 
4
  FROM python:3.9
5
+ # Create /run/mysqld and set permissions BEFORE switching users
6
+ RUN mkdir -p /run/mysqld && chown user:user /run/mysqld
7
  # Switch to root user to perform administrative tasks
8
  USER root
9