diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..24ae61f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM node:lts-alpine3.18 +RUN mkdir -p /usr/src/app +WORKDIR /usr/src/app + +# Install dependencies +RUN apk update && apk upgrade +RUN apk add --no-cache git + +# Copy source code +COPY . /usr/src/app +RUN npm install +RUN npm run build + +# Expose port +EXPOSE 3000 + +# Environment variables +ENV NUXT_HOST=0.0.0.0 +ENV NUXT_PORT=3000 + +# Run the app +CMD ["npm", "start"]