Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: 熊鑫伟 Xinwei Xiong <[email protected]>
  • Loading branch information
cubxxw authored Oct 25, 2024
1 parent 2921180 commit 0411f43
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions compose/production/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,9 @@ RUN apt-get update && \

# Copy necessary files
COPY ./README.md ./LICENSE ./
COPY ./compose/production/ubuntu/get_os.sh ./compose/production/ubuntu/get_arch.sh ./compose/production/ubuntu/source.sh /telepace/tools/

# Ensure the scripts are executable and run them
RUN chmod +x /telepace/tools/*.sh && \
/telepace/tools/get_os.sh > ~/os && \
/telepace/tools/get_arch.sh > ~/arch && \
echo "export OS=$(cat ~/os)" >> /etc/profile && \
echo "export ARCH=$(cat ~/arch)" >> /etc/profile && \
cp /telepace/tools/get_os.sh /usr/local/bin/get_os && \
cp /telepace/tools/get_arch.sh /usr/local/bin/get_arch

# Set directory to map logs, config files, scripts, and SDK
VOLUME ["/telepace", \
"/telepace/app/logs", "/telepace/app/config", "/telepace/app/scripts", "/telepace/app/_output/bin"]

WORKDIR /telepace
"/telepace/app/logs", "/telepace/app/config", "/telepace/app/scripts"]

# Define ONBUILD triggers for later stages
ONBUILD RUN OS=$(get_os) && \
ARCH=$(get_arch)
WORKDIR /telepace/app

0 comments on commit 0411f43

Please sign in to comment.