parent
b1018ac8bf
commit
abf5e6d92d
@ -0,0 +1,19 @@ |
||||
FROM node:10 |
||||
# Create Remix user, don't use root! |
||||
# RUN yes | adduser --disabled-password remix && mkdir /app |
||||
# USER remix |
||||
|
||||
# #Now do remix stuff |
||||
# USER remix |
||||
WORKDIR /home/remix |
||||
|
||||
RUN git clone https://github.com/ethereum/remix-ide.git |
||||
RUN git checkout origin remix_live |
||||
|
||||
WORKDIR /home/remix/remix |
||||
RUN npm install |
||||
RUN npm run build |
||||
|
||||
EXPOSE 8080 65520 |
||||
|
||||
CMD ["npm", "run", "serve"] |
@ -0,0 +1,20 @@ |
||||
# This dockerfile is to build each branch seperately (for dev purpouses) |
||||
FROM node:10 |
||||
# Create Remix user, don't use root! |
||||
# RUN yes | adduser --disabled-password remix && mkdir /app |
||||
# USER remix |
||||
|
||||
# #Now do remix stuff |
||||
# USER remix |
||||
WORKDIR /home/remix |
||||
|
||||
COPY ./ ./ |
||||
|
||||
WORKDIR /home/remix/remix |
||||
# npm ci would probably be better |
||||
RUN npm install |
||||
RUN npm run build |
||||
|
||||
EXPOSE 8080 65520 |
||||
|
||||
CMD ["npm", "run", "serve"] |
@ -0,0 +1,9 @@ |
||||
#!/bin/bash |
||||
set -e |
||||
|
||||
# If not staging and master branch are existing |
||||
export TAG="$CIRCLE_BRANCH" |
||||
|
||||
docker login --username $DOCKER_USER --password $DOCKER_PASS |
||||
docker-compose build |
||||
docker push remixproject/remix-ide:$TAG |
@ -0,0 +1,18 @@ |
||||
version: "3.7" |
||||
x-project-base: |
||||
&project-base |
||||
restart: always |
||||
networks: |
||||
- remixide |
||||
|
||||
networks: |
||||
remixide: |
||||
|
||||
services: |
||||
remixide: |
||||
<<: *project-base |
||||
image: remixproject/remix-ide:$TAG |
||||
container_name: remixide-${TAG} |
||||
build: |
||||
context: . |
||||
dockerfile: Dockerfile.dev |
Loading…
Reference in new issue