Ajout dockerfile

develop
Jimmy Pellier 4 years ago
parent 4cb28e49de
commit 085c544587
  1. 13
      DockerFile
  2. 3
      babel.config.js
  3. 6
      vue.config.js

@ -0,0 +1,13 @@
# étape de build
FROM node:lts-alpine as build-stage
WORKDIR /app
COPY TempCheckerFront/package*.json ./
RUN npm install
COPY TempCheckerFront/. .
RUN npm run build
# étape de production
FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

@ -1,5 +1,6 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
],
}

@ -0,0 +1,6 @@
module.exports = {
devServer: {
https: false,
port:8080
}
}
Loading…
Cancel
Save