Skip to content

Commit 17f201e

Browse files
author
Nick
committed
mv dumb-init to base image
1 parent cc0af54 commit 17f201e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,4 @@ MAINTAINER lampnick <[email protected]>
2020
COPY --from=builder /usr/local/bin/doctron /usr/local/bin/doctron
2121
COPY conf/default.yaml /doctron.yaml
2222
EXPOSE 8080
23-
RUN wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_amd64
24-
RUN chmod +x /usr/local/bin/dumb-init
2523
CMD ["dumb-init", "doctron", "--config", "/doctron.yaml"]

Dockerfile.runtime.alpine

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ RUN cd /usr/share/fonts && \
2828
fc-list :lang=zh
2929

3030
RUN chromium-browser --version
31-
31+
RUN wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_amd64
32+
RUN chmod +x /usr/local/bin/dumb-init
3233
# auto run chrome headless
3334
#ENTRYPOINT ["chromium-browser", "--headless", "--no-first-run", "---no-sandbox", "--disable-gpu", "--disable-dev-shm-usage", "--disable-setuid-sandbox", "--fast-start", "--single-process", "--disable-renderer-backgrounding", "--disable-sync", "--enable-automation", "--hide-scrollbars", "--mute-audio"]
3435

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ build-runtime-alpine:
1717
## build-doctron-alpine: build doctron docker image with alpine.
1818
build-doctron-alpine:
1919
@docker build -t $(IMAGE_NAME):$(ALPINE_IMAGE_TAG) .
20+
@docker tag $(IMAGE_NAME):$(ALPINE_IMAGE_TAG) latest
2021

2122
## run-doctron-alpine: run doctron alpine docker image.
2223
run-doctron-alpine:

0 commit comments

Comments
 (0)