FROM node:12-alpine
# Working directory
WORKDIR /app
# Install dependencies
COPY package.json package-lock.json ./
RUN npm ci --silent
# Copy source
COPY . .
# Build and cleanup
ENV NODE_ENV=production
RUN npm run build \
&& npm prune
# Start server
CMD ["npm", "start"]
With this configuration, when I do a docker build . -t frishi/comicvine-service and a docker run -it frishi/comicvine-service, the Docker image fails to start up with:
BROKER: ServiceBroker is stopped. Good bye.
I tried setting the ENV SERVICES=services environment variable in the Dockerfile and it seems to have no effect.
What gives?
Hello, I'm using the Typescript template
I have a single service called
comicvine
, and the service definition looks like this: https://github.com/rishighan/comicvine-service/blob/8dc5daf3e0c618531c7beb0ceb2d9afdb6111242/services/comicvine.service.ts#L14The Dockerfile:
With this configuration, when I do a
docker build . -t frishi/comicvine-service
and adocker run -it frishi/comicvine-service
, the Docker image fails to start up with:I tried setting the
ENV SERVICES=services
environment variable in theDockerfile
and it seems to have no effect. What gives?