diff --git a/src/Api/.dockerignore b/src/Api/.dockerignore index e69de29..f06235c 100644 --- a/src/Api/.dockerignore +++ b/src/Api/.dockerignore @@ -0,0 +1,2 @@ +node_modules +dist diff --git a/src/Api/Dockerfile b/src/Api/Dockerfile index d40f36b..7246a32 100644 --- a/src/Api/Dockerfile +++ b/src/Api/Dockerfile @@ -3,10 +3,11 @@ ENV PORT=8080 WORKDIR /app ARG http_proxy=http://193.49.118.36:8080 https_proxy=http://193.49.118.36:8080 COPY package*.json ./ +COPY tsconfig.json ./ COPY . . RUN npm install -RUN echo $? +RUN npm run build #EXPOSE 8080 -#CMD [ "node", "server.js" ] +CMD [ "node","." ]