-
-
Notifications
You must be signed in to change notification settings - Fork 678
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
Docker image doesn't build due to lax version fixing #31
Comments
I tried with FROM node:14.21.2-buster-slim
MAINTAINER "Daniel Garcia aka (cr0hn)" <[email protected]>
ENV STAGE "DOCKER"
RUN apt-get update && apt-get install -y netcat
# Build app folders
RUN mkdir /app
WORKDIR /app
# Install depends
COPY package.json /app/
RUN npm install
# Bundle code
COPY . /app
RUN chmod +x /app/start.sh
EXPOSE 3000
CMD [ "/app/start.sh" ] and FROM node:19.4.0-bullseye-slim
MAINTAINER "Daniel Garcia aka (cr0hn)" <[email protected]>
ENV STAGE "DOCKER"
RUN apt-get update && apt-get install -y netcat
# Build app folders
RUN mkdir /app
WORKDIR /app
# Install depends
COPY package.json /app/
RUN npm install
# Bundle code
COPY . /app
RUN chmod +x /app/start.sh
EXPOSE 3000
CMD [ "/app/start.sh" ] but in both cases the app build but I have an issue when trying to log in:
|
@cr0hn If you know the version you used when you tested it, could you provide a dockerfile with debian and node fixed versions? |
I'm sorry, but I don't remember. A lot of time from this. Sorry. |
@noraj same problem here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The app doesn't build from the docker file.
I guess it's because the dockerfile doesn't fix any version and that the app is not compatible with the current nodejs / npm provided by the image.
The text was updated successfully, but these errors were encountered: