Make dokerfile works

This commit is contained in:
Luis Eduardo Jeréz Girón
2024-07-24 15:49:30 -06:00
parent 7222302f30
commit 6f78784152

View File

@@ -77,3 +77,22 @@ RUN rm -rf /app/temp
##############
# START HERE #
##############
# Copy and install nodejs dependencies
COPY package.json .
RUN npm install
# Copy and install go dependencies
COPY go.mod .
COPY go.sum .
RUN go mod download
# Copy the rest of the files
COPY . .
# Build the app
RUN task build
# Run the app
EXPOSE 8085
CMD ["task", "serve"]