From 5d02c918f184f512227e1be41e071003acdd22a1 Mon Sep 17 00:00:00 2001
From: Francois Romain <francoisromain@gmail.com>
Date: Thu, 28 Jan 2021 13:01:02 +0100
Subject: [PATCH] =?UTF-8?q?build:=20met=20=C3=A0=20jour=20la=20version=20c?=
 =?UTF-8?q?ible=20du=20compileur=20typescript?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 Dockerfile    | 5 +++--
 tsconfig.json | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 5c8477e17..653c36c80 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM node:14.15-alpine as build-stage
+FROM node:14-alpine as build-stage
 WORKDIR /app
 
 COPY package*.json ./
@@ -10,7 +10,7 @@ COPY dev dev/
 COPY knex knex/
 RUN npm run build
 
-FROM node:14.15-alpine as production-stage
+FROM node:14-alpine as production-stage
 WORKDIR /app
 
 # redirige les logs sur le collecteur de logs docker
@@ -25,5 +25,6 @@ COPY --from=build-stage /app/knex ./knex
 COPY --from=build-stage /app/dev ./dev
 # nous avons besoin des sources pour lancer certains scripts manuellement
 COPY --from=build-stage /app/src ./src
+COPY --from=build-stage /app/tsconfig.json ./
 
 CMD ["npm", "start"]
diff --git a/tsconfig.json b/tsconfig.json
index cd60a2f43..6d7df04b1 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -3,7 +3,7 @@
     "allowJs": true,
     "alwaysStrict": true,
     "inlineSources": true,
-    "lib": ["esnext"],
+    "lib": ["es2020"],
     "module": "commonjs",
     "moduleResolution": "node",
     "noFallthroughCasesInSwitch": true,
-- 
GitLab