Adding chmod to Dockerfiles

pull/6004/head
Gabriel Engel 9 years ago
parent 39a1f19376
commit da74f43c04
  1. 7
      .docker/develop/Dockerfile
  2. 32
      .docker/experimental/Dockerfile
  3. 7
      .docker/latest/Dockerfile

@ -4,8 +4,6 @@ ENV RC_VERSION develop
MAINTAINER buildmaster@rocket.chat
VOLUME /app/uploads
RUN set -x \
&& curl -SLf "https://rocket.chat/releases/${RC_VERSION}/download" -o rocket.chat.tgz \
&& curl -SLf "https://rocket.chat/releases/${RC_VERSION}/asc" -o rocket.chat.tgz.asc \
@ -14,10 +12,13 @@ RUN set -x \
&& rm rocket.chat.tgz rocket.chat.tgz.asc \
&& cd /app/bundle/programs/server \
&& npm install \
&& npm cache clear
&& npm cache clear \
&& chown rocketchat:rocketchat /app -R
USER rocketchat
VOLUME /app/uploads
WORKDIR /app/bundle
# needs a mongoinstance - defaults to container linking with alias 'mongo'

@ -1,32 +0,0 @@
FROM rocketchat/base:4
ENV RC_VERSION experimental
MAINTAINER buildmaster@rocket.chat
VOLUME /app/uploads
RUN set -x \
&& curl -SLf "https://rocket.chat/releases/${RC_VERSION}/download" -o rocket.chat.tgz \
&& curl -SLf "https://rocket.chat/releases/${RC_VERSION}/asc" -o rocket.chat.tgz.asc \
&& gpg --verify rocket.chat.tgz.asc \
&& tar -zxf rocket.chat.tgz -C /app \
&& rm rocket.chat.tgz rocket.chat.tgz.asc \
&& cd /app/bundle/programs/server \
&& npm install \
&& npm cache clear
USER rocketchat
WORKDIR /app/bundle
# needs a mongoinstance - defaults to container linking with alias 'mongo'
ENV MONGO_URL=mongodb://mongo:27017/rocketchat \
HOME=/tmp \
PORT=3000 \
ROOT_URL=http://localhost:3000 \
Accounts_AvatarStorePath=/app/uploads
EXPOSE 3000
CMD ["node", "main.js"]

@ -4,8 +4,6 @@ ENV RC_VERSION latest
MAINTAINER buildmaster@rocket.chat
VOLUME /app/uploads
RUN set -x \
&& curl -SLf "https://rocket.chat/releases/${RC_VERSION}/download" -o rocket.chat.tgz \
&& curl -SLf "https://rocket.chat/releases/${RC_VERSION}/asc" -o rocket.chat.tgz.asc \
@ -14,10 +12,13 @@ RUN set -x \
&& rm rocket.chat.tgz rocket.chat.tgz.asc \
&& cd /app/bundle/programs/server \
&& npm install \
&& npm cache clear
&& npm cache clear \
&& chown rocketchat:rocketchat /app -R
USER rocketchat
VOLUME /app/uploads
WORKDIR /app/bundle
# needs a mongoinstance - defaults to container linking with alias 'mongo'

Loading…
Cancel
Save