Skip to content

Commit

Permalink
Add chromium to Docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
efixler committed Apr 2, 2024
1 parent fd9542c commit 8d38e36
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Expand Up @@ -16,12 +16,17 @@ WORKDIR /go/bin
FROM debian:12-slim

RUN apt -y update && apt -y upgrade
RUN apt-get -y install sqlite3 ca-certificates curl
RUN apt-get -y install \
sqlite3 \
ca-certificates \
curl \
chromium \
gnupg wget apt-transport-https
RUN mkdir -p /scrape/bin
COPY --from=builder /go/bin/* /scrape/bin/
RUN mkdir -p /scrape_data
VOLUME [ "/scrape_data" ]
ENV SCRAPE_DB="sqlite:/scrape_data/scrape.db"
EXPOSE 8080/tcp
CMD ["cd", "/"]
# The default sqlite db will be in /scrape_data/scrape.db
ENTRYPOINT ["/scrape/bin/scrape-server"]

0 comments on commit 8d38e36

Please sign in to comment.