Skip to content

Commit

Permalink
feat(storage-server): dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm committed Nov 26, 2022
1 parent 3cf8369 commit aa80d6e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 11 additions & 5 deletions packages/service/storage-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM node:18-alpine
ARG NODE_VERSION=18

LABEL maintainer="S. Ali Mihandoost <[email protected]>"
FROM node:${NODE_VERSION}-alpine

ENV NODE_ENV production
LABEL maintainer="S. Ali Mihandoost <[email protected]>"

WORKDIR /app

Expand All @@ -11,9 +11,15 @@ WORKDIR /app

COPY package.json ./

RUN yarn install --frozen-lockfile --production=true --non-interactive
RUN yarn install --frozen-lockfile --non-interactive

COPY dist .
COPY . .

RUN yarn build

ENV PORT 80
ENV TOKEN ${STORAGE_TOKEN}
ENV NODE_ENV production

EXPOSE 80

Expand Down
2 changes: 1 addition & 1 deletion packages/service/storage-server/src/lib/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {createLogger} from '@alwatr/logger';

export const logger = createLogger('service-storage');
export const logger = createLogger('storage-server');

export const config = {
host: process.env.HOST ?? '0.0.0.0',
Expand Down

0 comments on commit aa80d6e

Please sign in to comment.