Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mpr committed Nov 23, 2024
1 parent 879de1a commit c0c8424
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Dockerfile
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

0 comments on commit c0c8424

Please sign in to comment.