We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 16e493d + f02916e commit dcc5857Copy full SHA for dcc5857
Dockerfile
@@ -1,22 +1,22 @@
1
-FROM node:18 as builder
2
-
+FROM node:alpine
3
WORKDIR /app
4
5
-# Update npm
6
-RUN npm install -g npm@latest
+COPY next.config.js .
+COPY package.json .
+COPY postcss.config.js .
+COPY tailwind.config.js .
7
+COPY tsconfig.json .
8
+ COPY yarn.lock .
9
10
# Install app dependencies
-COPY ["package.json", "yarn.lock*", "./"]
11
+ #RUN npm install
12
RUN yarn install
13
-# Copy source code
14
COPY . .
15
+ #RUN npm run build
16
+RUN yarn build
17
EXPOSE 3000
18
# Create a non-root user and switch to it
19
# RUN chown -R node /app
20
# USER node
21
# Command to run on container start
22
-CMD ["yarn", "dev"]
+CMD ["yarn","start"]
0 commit comments