The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/ee/server/services/Dockerfile

30 lines
448 B

FROM node:12 as build
WORKDIR /app
RUN apt-get update \
&& apt-get install -y build-essential git
ADD ./package.json .
RUN npm install --production
FROM node:12-alpine
ARG SERVICE
WORKDIR /app
COPY --from=build /app .
# add dist/ folder from tsc so we don't need to add all rocket.chat repo
ADD ./dist .
ENV NODE_ENV=production \
PORT=3000
WORKDIR /app/ee/server/services/${SERVICE}
EXPOSE 3000 9458
CMD ["node", "service.js"]