diff --git a/src/Api/.dockerignore b/src/Api/.dockerignore new file mode 100644 index 0000000..e69de29 diff --git a/src/Api/Dockerfile b/src/Api/Dockerfile index 4717570..d40f36b 100644 --- a/src/Api/Dockerfile +++ b/src/Api/Dockerfile @@ -1,16 +1,12 @@ -# syntax=docker/dockerfile:1 - FROM node:latest -ENV NODE_ENV=production - +ENV PORT=8080 WORKDIR /app - -COPY ["package.json", "package-lock.json*", "./"] - -RUN npm install -RUN npm run build -RUN npm publish +ARG http_proxy=http://193.49.118.36:8080 https_proxy=http://193.49.118.36:8080 +COPY package*.json ./ COPY . . -CMD [ "node", "server.js" ] +RUN npm install +RUN echo $? +#EXPOSE 8080 +#CMD [ "node", "server.js" ]