Files
talk/Dockerfile
Mendel Konikov 77e54aab1f [v4] fix: Pin node-gyp to address issue building on Node 8 (#2992)
* Update Dockerfile

* Update config.yml
2020-06-23 18:41:34 +00:00

30 lines
653 B
Docker

FROM node:8-alpine
# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Setup the environment
ENV PATH /usr/src/app/bin:$PATH
ENV TALK_PORT 5000
EXPOSE 5000
# Bundle app source
COPY . /usr/src/app
# Ensure the runtime of the container is in production mode.
ENV NODE_ENV production
# Store the current git revision.
ARG REVISION_HASH
ENV REVISION_HASH=${REVISION_HASH}
# Install app dependencies and build static assets.
# Pin node-gyp@6.1.0 as newer versions do not build on Node 8.
RUN yarn global add node-gyp@6.1.0 && \
yarn install --frozen-lockfile && \
yarn build && \
yarn cache clean
CMD ["yarn", "start"]