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 4e8f68f commit a8f9c14
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.0.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 a8f9c14

Please sign in to comment.