Sign inSign up

wengcan/frontend

By wengcan

•Updated about 5 years ago

frontend pack with sassc & node & yarn

Image
1

836

wengcan/frontend repository overview

⁠USAGE

add two files

⁠Dockerfile

FROM wengcan/frontend:1.0
RUN yarn global add \
                npm \
                node-gyp \
                node-sass \
                bower \
                gulp \
                webpack \
                webpack-dev-server \
                browserify\
                karma-cli\
                yo \
                ava \
                mocha \
                babel-cli \
                typescript \
                create-react-app \
                react-scripts-ts \
                node-static \
                puppeteer \
                vue \
                vue-cli
EXPOSE 80 443 8080 8088 9000 9001 9002 9003 3000 3001 3002 3003
ENTRYPOINT ["zsh"]
⁠docker-compose.yml
version: '2'

services:
    frontend:
        build: .
        volumes:
            - ./data:/root/data/
        ports:
            - "8080:8080"
            - "8088:8088"
            - "80"
            - "443"
            - "9000"
            - "9001"
            - "9002"
            - "9003"
            - "3000"
            - "3001"
            - "3002"
            - "3003"
        tty: true
        stdin_open: true

⁠then
docker-compose up -d --build frontend

Tag summary

Content type

Image

Digest

Size

274.1 MB

Last updated

about 5 years ago

docker pull wengcan/frontend