mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 01:44:26 +08:00
24 lines
433 B
Docker
24 lines
433 B
Docker
FROM node:7.6
|
|
|
|
# Add node-gyp for bcrypt build support
|
|
RUN yarn global add node-gyp
|
|
|
|
# Create app directory
|
|
RUN mkdir -p /usr/src/app
|
|
WORKDIR /usr/src/app
|
|
|
|
# Setup the environment
|
|
ENV NODE_ENV production
|
|
ENV PATH /usr/src/app/bin:$PATH
|
|
ENV TALK_PORT 5000
|
|
EXPOSE 5000
|
|
|
|
# Install app dependencies
|
|
COPY package.json yarn.lock /usr/src/app/
|
|
RUN yarn install --production
|
|
|
|
# Bundle app source
|
|
COPY . /usr/src/app
|
|
|
|
CMD [ "yarn", "start" ]
|