diff --git a/Dockerfile b/Dockerfile index fe563c0..45578f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,15 +7,9 @@ COPY . . ENV GATSBY_TELEMETRY_DISABLED 1 RUN npm run build -FROM node:alpine AS runner -WORKDIR /app -RUN addgroup -g 1001 -S gatsby -RUN adduser -S gatsby -u 1001 -COPY --from=builder /app/public ./public -COPY --from=builder /app/node_modules ./node_modules -COPY --from=builder /app/package.json ./package.json -USER gatsby -EXPOSE 9000 -ENV PORT 9000 -ENV GATSBY_TELEMETRY_DISABLED 1 -CMD ["node_modules/.bin/gatsby", "serve"] \ No newline at end of file +FROM nginx:alpine +WORKDIR /usr/share/nginx/html +RUN rm -rf ./* +COPY --from=builder /app/public . +EXPOSE 80 +ENTRYPOINT ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 46d1010..8cf23ef 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,4 +5,4 @@ services: image: localhost:5000/infoscreen:latest restart: always ports: - - 11460:9000 # 1, 14th char in alphabet, 6th char in alphabet, 0 \ No newline at end of file + - 11460:80 # 1, 14th char in alphabet, 6th char in alphabet, 0 \ No newline at end of file