hummingbird-me/kitsu-web

View on GitHub
Dockerfile

Summary

Maintainability
Test Coverage
FROM node:15-alpine
MAINTAINER Kitsu, Inc.

RUN mkdir -p /opt/kitsu/client

# Preinstall dependencies in an earlier layer so we don't reinstall every time
# any file changes.
COPY ./package.json /opt/kitsu/client/
COPY ./yarn.lock /opt/kitsu/client/
WORKDIR /opt/kitsu/client
RUN yarn install --pure-lockfile

# *NOW* we copy the codebase in
COPY . /opt/kitsu/client

ENTRYPOINT ["./node_modules/.bin/ember"]
CMD ["serve", "--port=80", "--environment=development", "--live-reload-port=57777"]
EXPOSE 57777
EXPOSE 80