-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (31 loc) · 1.29 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM ubuntu:20.04
# was gcc:9, is ubuntu just for libretro until we can pull out apps out of marketplace
WORKDIR /alloplace2
EXPOSE 21337/udp
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y build-essential \
cmake curl \
libgme-dev libcairo2 libpoppler-glib-dev \
retroarch libretro-nestopia libretro-genesisplusgx libretro-snes9x \
libavcodec-dev libavformat-dev libswresample-dev libswscale-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# 1. configure marketplace
ADD marketplace /alloplace2/marketplace
RUN cd marketplace && bash scripts/bootstrap.sh
RUN cd marketplace/apps/flynncade && make
# 2. configure placesettings
ADD placesettings /alloplace2/placesettings
RUN cd placesettings && ./allo/assist fetch
# 3. configure decorator
ADD decorator /alloplace2/decorator
RUN cd decorator && ./allo/assist fetch
# 4. build and compile server with dependencies
COPY deps /alloplace2/deps
COPY src /alloplace2/src
COPY CMakeLists.txt /alloplace2
# We can't run generate-version.sh inside of the container :S
# This means you MUST run make version_header outside of the container beforebuilding!!
COPY build/deps/allonet/include /alloplace2/build/deps/allonet/include
RUN cd build; cmake ..; make
CMD cd /alloplace2; ./build/alloplace2