This commit is contained in:
bel
2021-09-12 22:02:07 -06:00
commit 66c7b284a1
37 changed files with 5865 additions and 0 deletions

27
copart/Dockerfile Executable file
View File

@@ -0,0 +1,27 @@
FROM golang:1.12-alpine as builder
WORKDIR /go/src/local/sandbox/selenium/copart/
COPY main.go .
COPY copart copart
COPY vendor vendor
RUN CGO_ENABLED=0 go build -o /go/bin/copart -a -installsuffix cgo
FROM selenium/standalone-chrome:3.141.59
WORKDIR /work
RUN mkdir -p /mnt && sudo chmod -R 777 /mnt
ENV SCREEN_WIDTH=400
ENV SCREEN_HEIGHT=300
ENV SCREEN_DEPTH=8
ENV NODE_MAX_INSTANCES=500
ENV NODE_MAX_SESSION=5000
ENV NODE_MAX_SESSIONS=5000
COPY --from=builder /go/bin/copart ./copart
COPY public public
COPY ./entrypoint.sh ./entrypoint.sh
CMD []
ENTRYPOINT ["bash", "./entrypoint.sh"]