add docker

master
TZGyn 10 months ago
parent b61f557380
commit fd509a5146
Signed by: TZGyn
GPG Key ID: 122EAF77AE81FD4A

@ -0,0 +1,27 @@
FROM oven/bun
# NodeJS app lives here
WORKDIR /app
# Set production environment
ENV NODE_ENV=production
# Throw-away build stage to reduce size of final image
# Install packages needed to build node modules
COPY ./package.json ./
COPY ./bun.lock ./
RUN bun install
COPY . .
# COPY ./.env.example ./.env
RUN bun run build
EXPOSE 3000
ENTRYPOINT ["bun", "build/index.js"]

@ -0,0 +1,7 @@
version: '1'
services:
crypto-data:
build:
context: ./
image: crypto-data
dockerfile: Dockerfile
Loading…
Cancel
Save