-
Notifications
You must be signed in to change notification settings - Fork 924
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedWe'd love some help!We'd love some help!needs discussionLet's keep chatting about thisLet's keep chatting about this
Description
Hi guys,
Amazing work
I'm just trying to create the Dockerfile
for this repo
# Use the official Node.js Alpine image as the base
FROM node:alpine
# Add git
RUN apk add git
# Set the working directory in the container
WORKDIR /app
# Copy package.json and yarn.lock to the container
COPY package.json yarn.lock ./
COPY . .
# Install dependencies
RUN yarn install
# Build the project
RUN yarn build
# Expose the desired port (e.g., 3000)
EXPOSE 3000
# Start the server
CMD ["yarn", "dev"]
this is just for basic testing but... I'm getting errors
#0 73.08 ➤ YN0000: └ Completed in 1m 13s
#0 73.11 ➤ YN0000: ┌ Link step
#0 76.04 ➤ YN0007: │ yarn@npm:1.22.19 must be built because it never has been before or the last one failed
#0 76.04 ➤ YN0007: │ protobufjs@npm:6.11.3 must be built because it never has been before or the last one failed
#0 76.04 ➤ YN0007: │ esbuild@npm:0.17.18 must be built because it never has been before or the last one failed
#0 76.16 ➤ YN0007: │ root-workspace-0b6124@workspace:. must be built because it never has been before or the last one failed
#0 90.24 ➤ YN0009: │ root-workspace-0b6124@workspace:. couldn't be built successfully (exit code 1, logs can be found here: /tmp/xfs-04580daf/build.log)
#0 90.24 ➤ YN0000: └ Completed in 17s 127ms
#0 90.33 ➤ YN0000: Failed with errors in 1m 30s
------
failed to solve: process "/bin/sh -c yarn install" did not complete successfully: exit code: 1
Any one can help me to make the Dockerfile to make it work on this amazing repo :)
sammcj
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedWe'd love some help!We'd love some help!needs discussionLet's keep chatting about thisLet's keep chatting about this