Files
threshold/docker/Dev.dockerfile
T
Timothy Messier e6a8704a60 fix(docker): Add missing packages to dev docker image (#1713)
Trying to run the docker image built with `make docker-build-dev` would
result in an error at startup:

    standard_init_linux.go:228: exec user process caused: no such file or directory

This was due to the dev docker image lacking `dumb-init` which is used
by `docker-entrypoint.sh`.

This commit updates the dev dockerfile to add dumb-init. It also adds
additional packages so that the dev image aligns with the release image.
2021-11-17 07:28:58 -05:00

20 lines
589 B
Docker

FROM docker.mirror.hashicorp.services/alpine:3.13.6
RUN set -eux && \
addgroup boundary && \
adduser -s /bin/sh -S -G boundary boundary && \
apk add --no-cache wget ca-certificates dumb-init gnupg libcap openssl su-exec iputils libc6-compat iptables
ADD bin/boundary /bin/boundary
RUN mkdir /boundary/
ADD ./config.hcl /boundary/config.hcl
RUN chown -R boundary:boundary /boundary/
EXPOSE 9200 9201 9202
VOLUME /boundary/
COPY ./docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["server", "-config", "/boundary/config.hcl"]