Skip to content

Commit

Permalink
infra tzwitter: add missing front dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrilevos committed Aug 11, 2023
1 parent ad5d4c8 commit 4e43bcf
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions 08_tzwitter_app/app/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 [email protected]
RUN npm install

RUN npm run build

RUN npm install -g serve

CMD ["serve", "-l", "3001", "-n", "-s", "build"]

0 comments on commit 4e43bcf

Please sign in to comment.