Commit
•
acbbc34
1
Parent(s):
2de8980
add dockerfile
Browse files- Dockerfile +20 -0
Dockerfile
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM arizephoenix/phoenix:latest
|
2 |
+
|
3 |
+
# Install just the shell and core utilities we need
|
4 |
+
COPY --from=busybox:1.36 /bin/sh /bin/sh
|
5 |
+
COPY --from=busybox:1.36 /bin/mkdir /bin/mkdir
|
6 |
+
COPY --from=busybox:1.36 /bin/chmod /bin/chmod
|
7 |
+
|
8 |
+
# Set environment variables
|
9 |
+
ENV HOME=/home/user \
|
10 |
+
PATH=/home/user/.local/bin:$PATH \
|
11 |
+
PHOENIX_WORKING_DIR=/data/
|
12 |
+
|
13 |
+
# Create data directory with permissions
|
14 |
+
RUN mkdir -p /data && chmod -R 777 /data
|
15 |
+
|
16 |
+
# Specify the user ID without creating it
|
17 |
+
USER 1000
|
18 |
+
|
19 |
+
# Set the working directory
|
20 |
+
WORKDIR $HOME/app
|