alpine-based image for working with Vue.js; use interactively or as a builder stage for Vue CLI apps
476
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
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" \
"$@"
}
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/
Content type
Image
Digest
Size
103.3 MB
Last updated
about 5 years ago
docker pull galvanist/vueenv