From 085c544587687e298d9bc321c65de8b163324d46 Mon Sep 17 00:00:00 2001 From: Jimmy Pellier Date: Fri, 19 Jun 2020 12:14:15 +0200 Subject: [PATCH] Ajout dockerfile --- DockerFile | 13 +++++++++++++ babel.config.js | 3 ++- vue.config.js | 6 ++++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 DockerFile create mode 100644 vue.config.js diff --git a/DockerFile b/DockerFile new file mode 100644 index 0000000..22dce5a --- /dev/null +++ b/DockerFile @@ -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;"] \ No newline at end of file diff --git a/babel.config.js b/babel.config.js index e955840..bf6d370 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,5 +1,6 @@ module.exports = { presets: [ '@vue/cli-plugin-babel/preset' - ] + ], + } diff --git a/vue.config.js b/vue.config.js new file mode 100644 index 0000000..007258c --- /dev/null +++ b/vue.config.js @@ -0,0 +1,6 @@ +module.exports = { + devServer: { + https: false, + port:8080 + } +} \ No newline at end of file