init
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
ARG VERSION
|
||||
FROM golang:1.17 as go
|
||||
|
||||
COPY devtools /devtools
|
||||
|
||||
RUN \
|
||||
apt-get update && \
|
||||
apt-get install -y upx-ucl && \
|
||||
cd /devtools && \
|
||||
go test -race && \
|
||||
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" && \
|
||||
upx /devtools/devtools
|
||||
|
||||
FROM selenoid/dev_chrome:$VERSION
|
||||
|
||||
ENV DBUS_SESSION_BUS_ADDRESS=/dev/null
|
||||
COPY --from=go /devtools/devtools /usr/bin/
|
||||
COPY chromedriver /usr/bin/
|
||||
COPY entrypoint.sh /
|
||||
|
||||
RUN chmod +x /usr/bin/chromedriver
|
||||
USER selenium
|
||||
|
||||
EXPOSE 4444
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
Reference in New Issue
Block a user