Skip to content

Commit

Permalink
refactor: Fix node:lts image (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
NexSabre authored Nov 18, 2022
1 parent cb01ccc commit 5f1c45c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# build stage (frontend)
FROM node:lts-alpine as build-stage
FROM node:16-buster as build-stage

WORKDIR /app
COPY package*.json ./
COPY package.json yarn.lock ./

RUN yarn -g install
COPY . .
Expand All @@ -16,20 +17,20 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -y install wireshar

RUN apt-get update && apt-get install -y --allow-change-held-packages --force-yes tshark


# Install Python stuff
RUN pip install cython
ADD ./requirements.txt /tmp/requirements.txt

RUN pip install --no-cache-dir -q -r /tmp/requirements.txt


# Copy files
ADD . /opt/packet_server/
# Copy files (only ph/ module is required)
ADD ph /opt/packet_server/ph
RUN mkdir -p /opt/packet_server/tmp
RUN mkdir -p /opt/packet_server/static

WORKDIR /opt/packet_server

# Copy only built ui
COPY --from=build-stage /app/dist/static static
COPY --from=build-stage /app/dist/index.html static

Expand Down

0 comments on commit 5f1c45c

Please sign in to comment.