diff --git a/08_tzwitter_app/app/Dockerfile b/08_tzwitter_app/app/Dockerfile new file mode 100644 index 0000000..0e41ca9 --- /dev/null +++ b/08_tzwitter_app/app/Dockerfile @@ -0,0 +1,19 @@ +FROM node:18-alpine + +WORKDIR /app + +COPY package*.json ./ + +COPY . . + +RUN sed -i 's|prettier -c . \&\& ||g' package.json + +RUN rm -rf node_modules build +RUN npm install -g npm@9.6.7 +RUN npm install + +RUN npm run build + +RUN npm install -g serve + +CMD ["serve", "-l", "3001", "-n", "-s", "build"]