File size: 524 Bytes
acbbc34
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM arizephoenix/phoenix:latest

# Install just the shell and core utilities we need
COPY --from=busybox:1.36 /bin/sh /bin/sh
COPY --from=busybox:1.36 /bin/mkdir /bin/mkdir
COPY --from=busybox:1.36 /bin/chmod /bin/chmod

# Set environment variables
ENV HOME=/home/user \
    PATH=/home/user/.local/bin:$PATH \
    PHOENIX_WORKING_DIR=/data/

# Create data directory with permissions
RUN mkdir -p /data && chmod -R 777 /data

# Specify the user ID without creating it
USER 1000

# Set the working directory
WORKDIR $HOME/app