diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e7ac75e..0d7453f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -39,3 +39,9 @@ jobs: - run: cp server/.env.example server/.env - run: docker compose up -d - run: npm test + + - run: docker build . -t magnito --build-arg VERSION=0.0.0 + - run: docker images + - run: docker run magnito --name magnito + - run: docker ps + - run: docker stop magnito diff --git a/Dockerfile b/Dockerfile index f0bf4fa..e07b5c6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,7 +30,7 @@ RUN npm run batch:writeVersion -- $VERSION RUN npm run build RUN apk --no-cache add curl -HEALTHCHECK --interval=5s --timeout=5s --retries=3 CMD curl -f $API_ORIGIN/health || exit 1 +HEALTHCHECK --interval=5s --timeout=5s --retries=3 CMD curl -f $API_ORIGIN/health && curl -f $CORS_ORIGIN || exit 1 EXPOSE 5000 5001 VOLUME ["/usr/src/app/data"] diff --git a/compose.yml b/compose.yml index 4f117f6..c8d93a6 100644 --- a/compose.yml +++ b/compose.yml @@ -2,9 +2,9 @@ services: inbucket: image: inbucket/inbucket:3.0.3 ports: - - '2500:2500' # SMTP - - '9000:9000' # web interface - - '1100:1100' # POP3 + - 2500:2500 # SMTP + - 9000:9000 # web interface + - 1100:1100 # POP3 volumes: - inbucket:/storage