forked from TeeworldsCN/teeworlds-infclassR
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (19 loc) · 736 Bytes
/
Dockerfile
File metadata and controls
20 lines (19 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# development enviroment
FROM alpine:3.4 AS development
WORKDIR /src
COPY . .
# speed up apk downloading (for China mainland)
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
RUN apk update && apk upgrade
RUN apk add --no-cache openssl gcc g++ make cmake python bam icu-dev libmaxminddb-dev
RUN bam server_release
# production enviroment (alpine
FROM alpine:3.4 AS production
WORKDIR /teeworlds_srv/
# speed up apk downloading (for China mainland)
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
RUN apk update && apk upgrade
RUN apk add --no-cache openssl libstdc++ libmaxminddb
COPY --from=development /src/bin ./infclass_srv
EXPOSE 8303/udp
ENTRYPOINT ["./server"]