doodle/docker/Debian.dockerfile

22 lines
574 B
Plaintext
Raw Permalink Normal View History

FROM debian:latest
MAINTAINER Noah Petherbridge <root@kirsle.net>
ENV GOPATH /home/builder/go
RUN apt update && apt -y upgrade && \
apt -y install git zip golang \
libsdl2-dev libsdl2-ttf-dev make && \
apt clean
# Create a user to build the packages.
2019-04-05 20:16:33 +00:00
RUN useradd builder -u 1000 -m -G users
# Add the project to the GOPATH
2022-09-24 22:17:25 +00:00
ADD . /home/builder/go/src/git.kirsle.net/SketchyMaze/doodle
RUN chown -R builder:builder /home/builder/go
# Build the app
USER builder
2022-09-24 22:17:25 +00:00
WORKDIR /home/builder/go/src/git.kirsle.net/SketchyMaze/doodle
RUN make setup
CMD ["make", "__docker.dist"]