Refactor envars for easier self-hosting

This commit is contained in:
Tuan Dang
2022-11-20 22:54:38 -05:00
parent 0f6675942d
commit 896760903a
12 changed files with 66 additions and 66 deletions

View File

@@ -7,10 +7,9 @@ WORKDIR /app
# Copy over dependency files
COPY package.json ./
COPY package-lock.json ./
COPY yarn.lock ./
# Install
RUN yarn install
RUN npm install
# Copy over next.js config
COPY next.config.js ./next.config.js
@@ -18,4 +17,4 @@ COPY next.config.js ./next.config.js
# Copy all files
COPY . .
CMD ["yarn", "dev"]
CMD ["npm", "run", "dev"]

View File

@@ -7,7 +7,6 @@ WORKDIR /app
# Copy over dependency files
COPY package.json ./
COPY package-lock.json ./
COPY yarn.lock ./
# Install
RUN npm install