commit
773f3b0cc8
@ -0,0 +1,6 @@ |
||||
FROM nginx:alpine |
||||
WORKDIR / |
||||
|
||||
COPY ./temp_publish_docker/ /usr/share/nginx/html/ |
||||
|
||||
EXPOSE 80 |
@ -0,0 +1,28 @@ |
||||
# This dockerfile is to build each branch seperately (for dev purposes) |
||||
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 ./ ./ |
||||
|
||||
RUN npm ci |
||||
RUN npm run build |
||||
|
||||
FROM nginx:alpine |
||||
WORKDIR / |
||||
|
||||
COPY --from=0 /home/remix/build/ /usr/share/nginx/html/build/ |
||||
COPY --from=0 /home/remix/index.html /usr/share/nginx/html/index.html |
||||
COPY --from=0 /home/remix/nginx.conf /etc/nginx/nginx.conf |
||||
COPY --from=0 /home/remix/assets/ /usr/share/nginx/html/assets/ |
||||
COPY --from=0 /home/remix/icon.png /usr/share/nginx/html/icon.png |
||||
COPY --from=0 /home/remix/background.js /usr/share/nginx/html/background.js |
||||
COPY --from=0 /home/remix/soljson.js /usr/share/nginx/html/soljson.js |
||||
COPY --from=0 /home/remix/package.json /usr/share/nginx/html/package.json |
||||
|
||||
EXPOSE 80 |
After Width: | Height: | Size: 9.1 KiB |
@ -0,0 +1,15 @@ |
||||
version: "3.7" |
||||
x-project-base: |
||||
&project-base |
||||
restart: always |
||||
networks: |
||||
- remixide |
||||
|
||||
networks: |
||||
remixide: |
||||
|
||||
services: |
||||
remixide: |
||||
build: |
||||
context: . |
||||
dockerfile: Dockerfile |
@ -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} |
||||
ports: |
||||
- 8080:80 |
||||
- 65520:65520 |
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue