forked from cfoust/sour
-
Notifications
You must be signed in to change notification settings - Fork 0
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
mpr
committed
Nov 23, 2024
1 parent
879de1a
commit c0c8424
Showing
1 changed file
with
26 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM ubuntu:22.04 | ||
# FROM alpine.. | ||
# bullseye-slim and bookwork-slim give glibc version compatibility errors | ||
|
||
ENV APP_DIR=/app | ||
ENV ASSETS_DIR=/app/assets | ||
|
||
# Create app directory in the container | ||
WORKDIR ${APP_DIR} | ||
|
||
# COPY ./sour . | ||
COPY ./sour /app/ | ||
|
||
# COPY ./sour ./assets/ | ||
# COPY ./assets ${ASSETS_DIR} | ||
COPY ./assets /app/assets/ | ||
|
||
# 1337 (tcp) for https web application and 28785/udp for native sauerbraten | ||
EXPOSE 1337 | ||
EXPOSE 28785/udp | ||
|
||
CMD ["./sour"] | ||
|
||
## To run this: | ||
# docker build -t sourtest:ubuntu22.04 . | ||
# docker run --name sourtest -p 1337:1337 -p 28785:28785/udp sourtest:ubuntu22.04 |