add docker
parent
b61f557380
commit
fd509a5146
@ -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…
Reference in New Issue