mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
21 lines
469 B
Docker
21 lines
469 B
Docker
|
# Use the official Node.js 18-alpine image as the base image
|
||
|
FROM node:18-alpine
|
||
|
|
||
|
# Set the working directory inside the container
|
||
|
WORKDIR /usr/src/app
|
||
|
|
||
|
# Copy package.json and package-lock.json to the working directory
|
||
|
COPY package*.json ./
|
||
|
|
||
|
# Install dependencies
|
||
|
RUN npm install
|
||
|
|
||
|
# Copy the rest of the application code to the working directory
|
||
|
COPY . .
|
||
|
|
||
|
# Build the TypeScript code
|
||
|
RUN npm run build
|
||
|
|
||
|
# Expose the port that your application will run on
|
||
|
EXPOSE 9000
|