-
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.
Setup Dockerfile and Container for easy Linux builds
- Loading branch information
1 parent
9826f0b
commit c721593
Showing
2 changed files
with
26 additions
and
14 deletions.
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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Use Ubuntu 22.04 as the base image | ||
FROM ubuntu:22.04 | ||
|
||
# Set up environment | ||
RUN apt-get update && apt-get install -y python3.9 python3-pip | ||
|
||
# Install dependencies | ||
RUN pip3 install --upgrade pip | ||
RUN pip3 install pyinstaller | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
# Copy your project files into the container | ||
COPY . /app | ||
|
||
# Run your compilation command | ||
CMD ["pyinstaller", "--onefile", "--name=Game", "--add-data", "Assets:Assets", "main.py"] |