Skip to content

Commit

Permalink
added dockerfile and updated captain file
Browse files Browse the repository at this point in the history
  • Loading branch information
smyja committed Nov 28, 2023
1 parent 053be36 commit cb83fbd
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM node:16-alpine

# Set working directory

ENV NODE_ENV=production
# Copy package.json and package-lock.json (if available)
COPY package*.json ./


# Copy the built application files


COPY ./public ./public

COPY ./node_modules ./node_modules
# Expose the desired port (e.g., 3000)

EXPOSE 3000

# Start the Node.js server
CMD ["npm", "run", "start"]
14 changes: 4 additions & 10 deletions captain-definition-frontend
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{
"schemaVersion": 2,
"dockerfileLines": [
"FROM node:16-alpine",
"WORKDIR /usr/app",
"COPY . /usr/src/app",
"RUN npm install",
"CMD [ \"npm\", \"start\" ]"
]
}
{
"schemaVersion": 2,
"dockerfilePath": "./Dockerfile"
}

0 comments on commit cb83fbd

Please sign in to comment.