Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM node:current-alpine3.19

RUN mkdir -p /app
WORKDIR /app

COPY package.json ./package.json
COPY package-lock.json ./package-lock.json

RUN apk add --update python3 make g++\
&& rm -rf /var/cache/apk/*
RUN apk add --no-cache bash

RUN yarn add dotenv
RUN yarn -python=python3

COPY . /app

CMD ["yarn", "run", "start"]
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
services:
api:
build:
context: .
dockerfile: ./Dockerfile
command: ["yarn", "run", "start"]
ports:
- "3001:3001"
volumes:
- .:/AlgorithmWikiAPI
env_file:
- .env