We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af2e390 commit bf2ff2bCopy full SHA for bf2ff2b
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