-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
461cf53
commit 2603c56
Showing
1 changed file
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |