terra-money/LocalTerra

Cannot access from terra station app.

scalalang2 opened this issue · 1 comments

  • OS : Mac OS X M1
  • Docker : Docker version 20.10.6, build 370c289
  • docker-compose: docker-compose version 1.29.1, build c34c88b2

I installed the LocalTerra according to its guide.
But it doesn't seem to work with terra station.

If I run the command below, we can see the error log from the FCD API as shown in the capture.

$ doker-compose up

image

TerraStation doesn't work as well.

I found same issue on Google.
docker/for-mac#5831

It seems that Node v16.x currently doesn't seem to support Apple Silicon.
So I changed the node version to 14 in the Dockerfile of fcd and it works well:

# FROM node:lts as builder // before
FROM node:14-alpine3.14 as builder

WORKDIR /app

COPY . .
RUN npm ci

# FROM node:lts-alpine // before
FROM node:14-alpine3.14

RUN apk add --no-cache tzdata

WORKDIR /app

COPY --from=builder /app/entrypoint.sh /app/package.json /app/package-lock.json /app/tsconfig.json ./
COPY --from=builder /app/node_modules/ ./node_modules/
COPY --from=builder /app/apidoc-template/ ./apidoc-template/
COPY --from=builder /app/src/ ./src/

ENTRYPOINT [ "./entrypoint.sh" ]
CMD [ "--help" ]