Sign inSign up

backplane/vueenv

By backplane

•Updated 1 day ago

alpine:edge-based image for working with Vue.js; meant to be run interactively during development an

Image
0

10K+

backplane/vueenv repository overview

⁠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

The source code for this image is hosted on GitHub in the backplane/conex repo⁠.

⁠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" \
    "backplane/vueenv:latest" \
    "$@"
}
⁠As Build Stage
FROM backplane/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

sha256:b02a5cff2…

Size

90.4 MB

Last updated

1 day ago

docker pull backplane/vueenv