Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

Commit

Permalink
GH-14: clean yarn caches
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Kosiakov <anton.kosyakov@typefox.io>
  • Loading branch information
akosyakov committed Jan 5, 2018
1 parent 7261b14 commit 882c35c
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 15 deletions.
7 changes: 4 additions & 3 deletions theia-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ FROM node:8
ARG version=latest
WORKDIR /home/theia
ADD $version.package.json ./package.json
RUN yarn
RUN npx theia build
RUN yarn --cache-folder ./ycache
RUN rm -rf ./ycache
RUN yarn theia build
EXPOSE 3000
ENV SHELL /bin/bash
ENTRYPOINT [ "npx", "theia", "start", "/home/project", "--hostname=0.0.0.0" ]
ENTRYPOINT [ "yarn", "theia", "start", "/home/project", "--hostname=0.0.0.0" ]
7 changes: 4 additions & 3 deletions theia-full-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@ RUN apt-get update && apt-get install -y python build-essential
ARG version=latest
WORKDIR /home/theia
ADD $version.package.json ./package.json
RUN yarn
RUN npx theia build
RUN yarn --cache-folder ./ycache
RUN rm -rf ./ycache
RUN yarn theia build
EXPOSE 3000
ENV SHELL /bin/bash
ENTRYPOINT [ "npx", "theia", "start", "/home/project", "--hostname=0.0.0.0" ]
ENTRYPOINT [ "yarn", "theia", "start", "/home/project", "--hostname=0.0.0.0" ]
7 changes: 4 additions & 3 deletions theia-go-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ RUN go get -u -v github.com/josharian/impl
RUN go get -u -v github.com/haya14busa/goplay/cmd/goplay
WORKDIR /home/theia
ADD $version.package.json ./package.json
RUN yarn
RUN npx theia build
RUN yarn --cache-folder ./ycache
RUN rm -rf ./ycache
RUN yarn theia build
EXPOSE 3000
ENV SHELL /bin/bash
RUN mkdir /root/.go
RUN echo '{"toolsGopath":"/root/go"}' > /root/.go/go.json
ENV GOPATH /home/project
ENTRYPOINT [ "npx", "theia", "start", "/home/project", "--hostname=0.0.0.0" ]
ENTRYPOINT [ "yarn", "theia", "start", "/home/project", "--hostname=0.0.0.0" ]
7 changes: 4 additions & 3 deletions theia-java-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ USER theia

ARG version=latest
ADD $version.package.json ./package.json
RUN yarn
RUN npx theia build
RUN yarn --cache-folder ./ycache
RUN rm -rf ./ycache
RUN yarn theia build
EXPOSE 3000
ENV SHELL /bin/bash
ENTRYPOINT [ "npx", "theia", "start", "/home/project", "--hostname=0.0.0.0" ]
ENTRYPOINT [ "yarn", "theia", "start", "/home/project", "--hostname=0.0.0.0" ]
7 changes: 4 additions & 3 deletions yangster-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ RUN echo 'deb http://httpredir.debian.org/debian/ jessie-backports main' >> /etc
ARG version=latest
WORKDIR /home/theia
ADD $version.package.json ./package.json
RUN yarn
RUN npx theia build
RUN yarn --cache-folder ./ycache
RUN rm -rf ./ycache
RUN yarn theia build
EXPOSE 3000
ENV SHELL /bin/bash
ENTRYPOINT [ "npx", "theia", "start", "/home/project", "--hostname=0.0.0.0" ]
ENTRYPOINT [ "yarn", "theia", "start", "/home/project", "--hostname=0.0.0.0" ]

0 comments on commit 882c35c

Please sign in to comment.