mirror of
https://github.com/LaconicNetwork/laconic.com.git
synced 2026-05-06 07:34:17 +00:00
modifications
This commit is contained in:
parent
74d51bd8dd
commit
5a259a866c
15
Dockerfile
15
Dockerfile
@ -1,22 +1,13 @@
|
||||
# Specify the base image
|
||||
FROM node:lts-alpine
|
||||
|
||||
# Set the working directory inside the container
|
||||
ARG NEXT_PUBLIC_DATOCMS_BYPASS_TYPE=local_json
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package.json and package-lock.json (if available) to the working directory
|
||||
COPY package*.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN yarn
|
||||
|
||||
# Copy the rest of the application code
|
||||
COPY . .
|
||||
|
||||
RUN yarn build
|
||||
RUN yarn && yarn build
|
||||
|
||||
# Expose a port (if your app needs to listen on a specific port)
|
||||
EXPOSE 3000
|
||||
|
||||
# Define the command to run your app
|
||||
CMD ["yarn", "start"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user