12 lines
263 B
Docker
12 lines
263 B
Docker
|
# https://v2.vuejs.org/v2/cookbook/dockerize-vuejs-app
|
||
|
FROM node:lts-alpine
|
||
|
RUN npm install -g http-server
|
||
|
WORKDIR /app/front
|
||
|
COPY package*.json ./
|
||
|
RUN npm install
|
||
|
COPY . .
|
||
|
ENV VITE_CLYDE_MODE=container
|
||
|
RUN npm run build
|
||
|
EXPOSE 8080
|
||
|
CMD [ "http-server", "dist" ]
|