Skip to content

Commit

Permalink
Fix waitForPort issue
Browse files Browse the repository at this point in the history
  • Loading branch information
michielbdejong committed Aug 30, 2024
1 parent 1751750 commit e50a1ca
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions docker/dockerfiles/ocmstub.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,18 @@ LABEL org.opencontainers.image.title="PonderSource OCM Stub Image"
LABEL org.opencontainers.image.source="https://github.com/pondersource/dev-stock"
LABEL org.opencontainers.image.authors="Mohammad Mahdi Baghbani Pourvahid"

WORKDIR /ocmstub
RUN apt update
RUN apt install -yq iproute2

COPY ./scripts/ocmstub/index.js index.js
RUN git clone https://github.com/michielbdejong/ocm-stub /ocmstub
WORKDIR /ocmstub

# trust all the certificates:
COPY ./tls/certificates/meshdir.crt /tls/meshdir.crt
COPY ./tls/certificates/meshdir.key /tls/meshdir.key
COPY ./tls/certificates/* /tls/
RUN cp /tls/*.crt /usr/local/share/ca-certificates/
RUN update-ca-certificates

RUN npm install

# run the app
EXPOSE 443/tcp
Expand Down

0 comments on commit e50a1ca

Please sign in to comment.