From 2942b2e6ff5cd9d17caab46ff086c6493703de7c Mon Sep 17 00:00:00 2001 From: Salvador Briones Date: Tue, 12 Dec 2023 19:36:21 +0100 Subject: [PATCH] feat: dockerize service --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e67ecbf --- /dev/null +++ b/Dockerfile @@ -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"] \ No newline at end of file