selenium/copart/Dockerfile

28 lines
596 B
Docker
Executable File

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"]