Sign inSign up

galvanist/vueenv

By galvanist

•Updated about 5 years ago

alpine-based image for working with Vue.js; use interactively or as a builder stage for Vue CLI apps

Image
1

476

galvanist/vueenv repository overview

⁠vueenv

See the home repo: https://github.com/glvnst/conex/tree/main/vueenv⁠

alpine:edge⁠-based image for working with Vue.js⁠; meant to be run interactively during development and also used as a builder stage for Vue CLI⁠-based apps in a multi-stage image build

⁠Usage

⁠Interactive

Add this to your shell profile:

vueenv() {
  docker run \
    -it \
    --rm \
    --volume "$(pwd):/work" \
    --env "HOST=0.0.0.0" \
    --env "PORT=8090" \
    --publish "8090:8090" \
    "galvanist/vueenv:latest" \
    "$@"
}
⁠As Build Stage
FROM galvanist/vueenv:latest as builder

COPY src /work

RUN npm install \
  && npm run build

FROM nginx:1-alpine as server
COPY --from=builder /work/dist/ /usr/share/nginx/html/

# maybe also something like this:
# COPY nginx_conf.d/* /etc/nginx/conf.d/

Tag summary

Content type

Image

Digest

Size

103.3 MB

Last updated

about 5 years ago

docker pull galvanist/vueenv