Skip to content

Commit

Permalink
feat: dockerize service
Browse files Browse the repository at this point in the history
  • Loading branch information
Mexidense committed Dec 12, 2023
1 parent bb1393d commit 2942b2e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ARG PUBLIC_APP_URL

FROM node:18.17.0-alpine
RUN mkdir /app
COPY package.json /app/
WORKDIR /app

COPY . ./

ENV NEXT_PUBLIC_APP_URL ${PUBLIC_APP_URL}

RUN npm ci
RUN npm run build

EXPOSE 3000

CMD ["npm", "run","start"]

0 comments on commit 2942b2e

Please sign in to comment.