Skip to content

Commit

Permalink
Add comments to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicasyu committed Oct 3, 2023
1 parent 461cf53 commit 2603c56
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
FROM amazoncorretto:8

# Change working directory
WORKDIR /home

# Install necessary libraries
RUN yum -y install unzip aws-cli
RUN yum -y install tar
RUN yum -y install xz
RUN mkdir input output init

# Copy model jar
COPY arcade-3.1.jar ./arcade.jar

# Copy entrypoint script and make executable
COPY arcade.sh ./arcade.sh
RUN chmod +x ./arcade.sh

# Create input and output directories
RUN mkdir input output init

# Create non root user
RUN yum -y install shadow-utils
RUN useradd nonroot
RUN chown nonroot /mnt/ input/ output/ init/
USER nonroot

# Set entrypoint scipt
ENTRYPOINT ./arcade.sh

0 comments on commit 2603c56

Please sign in to comment.