Skip to content

Commit

Permalink
containerfile formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
meadowsys committed Nov 18, 2023
1 parent bd8a0af commit 0888f5b
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
software-properties-common \
&& rm -rf /var/lib/apt/lists/*

# RUN useradd -m sani
# USER sani

ENV PNPM_VERSION 8.6.12
ENV PNPM_HOME /root/.local/share/pnpm
ENV PATH ${PATH}:/root/.local/share/pnpm
Expand All @@ -17,19 +14,11 @@ RUN curl -fsSL https://get.pnpm.io/install.sh | SHELL=`/bin/bash` sh - \
ENV NODE_VERSION 14.21.3
RUN pnpm env use -g ${NODE_VERSION}

WORKDIR /home/sani/app

WORKDIR /home/canni/app

COPY . .

RUN pnpm i --frozen-lockfile -P

# RUN pnpm lint

# RUN pnpm prune --prod && pnpm store prune

COPY LICENSE LICENSE

ENV NODE_ENV production

CMD ["node", "main.js"]

0 comments on commit 0888f5b

Please sign in to comment.