-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (23 loc) · 806 Bytes
/
Dockerfile
File metadata and controls
26 lines (23 loc) · 806 Bytes
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
# syntax=docker/dockerfile:1
# check=skip=SecretsUsedInArgOrEnv
FROM golang:latest
ARG TARGETARCH
WORKDIR /go/src/
VOLUME [ "/go/src/" ]
EXPOSE 1088 5190 5191 5192 5193 5194 5195 5196 5197 8080
RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
COPY scripts/boot.sh /usr/bin/CMBoot
COPY scripts/import_bart.sh /usr/bin/import_bart
RUN chmod +x /usr/bin/CMBoot
RUN chmod +x /usr/bin/import_bart
COPY settings.env /go/settings.env
COPY bin/${TARGETARCH}/retro_aim_server /go/retro_aim_server
RUN mkdir -p /go/src/aim_bart_emoticons
ENV OSCAR_LISTENERS=LOCAL://0.0.0.0:5190
ENV OSCAR_ADVERTISED_LISTENERS_PLAIN=LOCAL://127.0.0.1:5190
ENV TOC_LISTENERS=0.0.0.0:9898
ENV API_LISTENER=127.0.0.1:8080
ENV DB_PATH=oscar.sqlite
ENV DISABLE_AUTH=true
ENV LOG_LEVEL=info
ENTRYPOINT ["CMBoot"]