Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Mistake in production dockerfile using yarn #2378

Open
tanmayvaij opened this issue Feb 11, 2025 · 0 comments
Open

[Bug]: Mistake in production dockerfile using yarn #2378

tanmayvaij opened this issue Feb 11, 2025 · 0 comments

Comments

@tanmayvaij
Copy link

Link to the documentation page or resource

https://docs.strapi.io/dev-docs/installation/docker#production-dockerfile

Describe the bug

In the snippet of ./Dockerfile.prod, its mentioned ENV NODE_ENV=production, it shoud be ARG NODE_ENV=production

# Creating multi-stage build for production
FROM node:18-alpine as build
RUN apk update && apk add --no-cache build-base gcc autoconf automake zlib-dev libpng-dev vips-dev git > /dev/null 2>&1
ENV NODE_ENV=production
ENV NODE_ENV=${NODE_ENV}

Additional context

No response

Suggested improvements or fixes

No response

Related issue(s)/PR(s)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant